Commit ed0554c60bbf5d93ba2bab322a9416d058e3161c
1 parent
2407ff21
Exists in
master
and in
29 other branches
Move eager_load to a initializer
Showing
2 changed files
with
1 additions
and
1 deletions
Show diff stats
@@ -0,0 +1 @@ | @@ -0,0 +1 @@ | ||
1 | +Rails.application.eager_load! |
lib/noosfero/api/helpers.rb
@@ -45,7 +45,6 @@ module Noosfero | @@ -45,7 +45,6 @@ module Noosfero | ||
45 | end | 45 | end |
46 | end | 46 | end |
47 | 47 | ||
48 | - Rails.application.eager_load! | ||
49 | ARTICLE_TYPES = ['Article'] + Article.descendants.map{|a| a.to_s} | 48 | ARTICLE_TYPES = ['Article'] + Article.descendants.map{|a| a.to_s} |
50 | TASK_TYPES = ['Task'] + Task.descendants.map{|a| a.to_s} | 49 | TASK_TYPES = ['Task'] + Task.descendants.map{|a| a.to_s} |
51 | 50 |