Blah, identity_map has to be setup in application.rb to work

上级 6fa7c3e0
......@@ -114,6 +114,12 @@ def tmp
empty_directory_with_gitkeep "tmp"
end
def vendor
vendor_javascripts
vendor_stylesheets
vendor_plugins
end
def vendor_javascripts
if options[:skip_javascript]
empty_directory_with_gitkeep "vendor/assets/javascripts"
......@@ -217,14 +223,6 @@ def create_public_image_files
build(:images)
end
def create_public_stylesheets_files
build(:stylesheets)
end
def create_javascript_files
build(:javascripts)
end
def create_script_files
build(:script)
end
......
......@@ -57,5 +57,10 @@ class Application < Rails::Application
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
<% unless options[:skip_active_record] -%>
# Enable IdentityMap for Active Record, to disable set to false or remove the line below.
config.active_record.identity_map = true
<% end -%>
end
end
<%= app_const %>.configure do
config.assets.enabled = true
<% unless options[:skip_active_record] -%>
# Enable IdentityMap for Active Record, to disable set to false or remove the line below.
config.active_record.identity_map = true
<% end -%>
end
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册