Let’s say I have a simple model:
class Subscription < ActiveRecord::Base
attr_accessor :subscribed
def subscribed
@subscribed = Subscription.where(task_id, user_id)
!@subscribed.empty?
end
end
I’d like to make sure I can take a @subscription instance and call @subscription.subscribed – at the moment it can’t find the method.
I think you are doing something like:
instead of something like this:
It’s just a guess.