This sounds more like a question for rails-talk, but I think this is sorta what you want: https://github.com/jcasimir/draper/blob/master/lib/draper/railtie.rb#L22
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.