Exception: Hobby::Auth::SameNames

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hobby/auth.rb

Instance Method Summary collapse

Constructor Details

#initialize(models, name) ⇒ SameNames

Returns a new instance of SameNames.



29
30
31
32
33
# File 'lib/hobby/auth.rb', line 29

def initialize models, name
  first, second = models
  message = "The short names of #{first} and #{second} are the same: #{name}."
  super message
end