I'm getting: undefined method 'important_method' for #<Class:0xbee7b80>
when I call: User.some_class_method
with:
# models/user.rb
class User < ActiveRecord::Base
include ApplicationHelper
def self.some_class_method
important_method()
end
end
# helpers/application_helper.rb
module ApplicationHelper
def important_method()
[...]
end
end
What am I doing wrong? How can I avoid this problem?