Skip to content

Commit

Permalink
Insert new model adapters at the start of the list (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu committed Sep 13, 2020
1 parent 300f54c commit 880897d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cancan/model_adapters/abstract_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module ModelAdapters
class AbstractAdapter
def self.inherited(subclass)
@subclasses ||= []
@subclasses << subclass
@subclasses.insert(0, subclass)
end

def self.adapter_class(model_class)
Expand Down

0 comments on commit 880897d

Please sign in to comment.