At the moment changing a method in a class descending from ContentfulModel::Base requires full reload of Rails environment.
Example:
class TestModel < ContentfulModel::Base
self.content_type_id = 'test'
def title
"This is the title!"
end
end
# eg. in "rails console"
irb(main):001:0> TestModel.first.title
=> "This is the title!"
Changing the #title method:
....
def title
"New title?"
end
....
And then reloading:
irb(main):002:0> reload!
Reloading...
=> true
irb(main):003:0> TestModel.first.title
=> "This is the title!" # Would have expected "New title?" here