Skip to content

Commit

Permalink
Fix contracts used in AR-models
Browse files Browse the repository at this point in the history
ActiveRecord::Base.inherited needs to be called in order for models to be setup correctly.

Fixes #223
  • Loading branch information
eval committed May 17, 2016
1 parent 60db37e commit da16bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/contracts/decorators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def self.extended(klass)

def inherited(subclass)
Engine.fetch_from(subclass).set_eigenclass_owner
super
end

def method_added(name)
Expand Down

0 comments on commit da16bed

Please sign in to comment.