sorry, just checked it. i gotta be like this:
# my_plugin.rb:
module MyPlugin
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def my_action
# ...
end
end
end
irb(MyOtherController):001:0> MyOtherController.methods.include?
('my_action')
=> true
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---