Here is the code:
def self.included(receiver)
if defined?(receiver.metadata) && receiver.metadata[:type] == :controller
receiver.send :include, Devise::TestHelpers
end
end
A blog about the problems I've encountered while being a Ruby on Rails developer, and how I've solved them.
def self.included(receiver)
if defined?(receiver.metadata) && receiver.metadata[:type] == :controller
receiver.send :include, Devise::TestHelpers
end
end
No comments:
Post a Comment