public
Clone URL: git://github.com/nmerouze/action_presenter.git
Nicolas Mérouze (author)
Sun May 04 10:59:14 -0700 2008
commit  fd1def3f0b56db6bb8ce4d3c40f1819f704dbdae
tree    7cbc0ec7873f4062cd4ac0fba4aa6919f8e1b530
action_presenter / init.rb
100644 12 lines (10 sloc) 0.321 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