i have this ActiveModel in my rails 4 app.
class MyModeltest
include ActiveModel::Model
acts_as_api
attr_accessor :title, :content
api_accessible :public do |template|
template.add :title
template.add :content
end
end
i call this model form my controller and this return an error:
undefined local variable or method `acts_as_api' for ...
So, is possible to call acts_as_api under an ActiveModel? if yes, could you show me how do this?
thanks in advance
To be more clear, my problem is not with static variable acts_as_api, is with the gem "acts_as_api" that is not recognized by the ActiveModel