Skip to content

Commit

Permalink
Use simpler way to set model name
Browse files Browse the repository at this point in the history
The method signature for ActiveModel::Name.new changed between
version 3.0.9 and 3.1.0. Because of that, this test was failing for
ActiveModel < 3.1.0.
  • Loading branch information
tfausak committed Jul 15, 2013
1 parent 82ccc91 commit e333ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/active_interaction/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def execute

validates :thing, presence: true

def self.model_name
ActiveModel::Name.new(self, nil, SecureRandom.hex)
def self.name
SecureRandom.hex
end

def execute
Expand Down

0 comments on commit e333ffa

Please sign in to comment.