public
Clone URL: git://github.com/nmerouze/action_presenter.git
Search Repo:
action_presenter / init.rb
100644 12 lines (10 sloc) 0.34 kb
1
2
3
4
5
6
7
8
9
10
11
12
Dependencies.load_paths << Rails.root + '/app/presenters'
 
config.after_initialize do
  Rails.plugins.each do |plugin|
    path = Rails.root + "/vendor/plugins/#{plugin.name}/app/presenters"
  
    if File.directory?(path)
      Dependencies.load_paths << path
      ActionPresenter.view_paths << path
    end
  end
end if defined? :Engines