fix error in rails_admin
follow secret_token.rb's change
use same id and add cast
add images to config.assets.precompile
set timeout_in only if development env.