Skip to content

Commit

Permalink
Don't interact with database while precompiling assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhinson committed Oct 27, 2011
1 parent e193ee6 commit 15db060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/lib/refinery/pages/engine.rb
Expand Up @@ -12,7 +12,7 @@ class Engine < ::Rails::Engine
config.autoload_paths += %W( #{config.root}/lib )

config.to_prepare do |app|
Refinery::Page.translation_class.send(:is_seo_meta)
Refinery::Page.translation_class.send(:is_seo_meta) unless $rake_assets_precompiling
Refinery::Page.translation_class.send(:attr_accessible, :browser_title, :meta_description, :meta_keywords, :locale)
end

Expand Down

0 comments on commit 15db060

Please sign in to comment.