update rails default files

This commit is contained in:
r888888888
2015-08-18 17:50:27 -07:00
parent 341b29ce41
commit c8f38350c3
11 changed files with 71 additions and 29 deletions

View File

@@ -1 +1,11 @@
Rails.application.config.assets.precompile += %w( stupidtable.js ugoira_player.js )
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
Rails.application.config.assets.precompile += %w( *.png *.jpg *.gif )

View File

@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.
Rails.application.config.action_dispatch.cookies_serializer = :json
Rails.application.config.action_dispatch.cookies_serializer = :json

View File

@@ -10,5 +10,5 @@ end
# To enable root element in JSON for ActiveRecord objects.
ActiveSupport.on_load(:active_record) do
self.include_root_in_json = false
self.include_root_in_json = true
end