This goes in your main engines class:

module SomeModule
  class SomeClass < ::Rails::Engine
    initializer 'some_class.helper' do |app|
      ActionView::Base.send :include, SomeHelper
    end
  end
end

Cheers

Matt

On 31 Jul 2010, at 18:43, Michael Rigart wrote:

> Hi Matt,
> 
> where exactly do you put that initializer?
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Engine-Users mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

--

Matthew Crouch
Mobilezilla

Telephone:      +44 (0) 7958 592 326
Email:             [email protected]
Web:               http://www.mobilezil.la
Skype:            mobilezilla

Please consider the environment before printing out this email.

The contents of this email are confidential to the addressee
and are intended solely for the recipients use. If you are not
the addressee, you have received this email in error.
Any disclosure, copying, distribution or action taken in
reliance on it is prohibited and may be unlawful.

Any opinions expressed in this email are those of the author
personally.

All email communications are recorded for monitoring purposes.




_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to