Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

No need to specify caller.

  • Loading branch information...
commit fded89d86a33470715739d916714b9fe2173e10a 1 parent 851eb02
@postmodern authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/dm-is-predefined/is/predefined.rb
View
6 lib/dm-is-predefined/is/predefined.rb
@@ -83,7 +83,7 @@ def predefined_resource(name,extra_attributes={})
attributes = predefined_attributes[name]
unless attributes
- raise(UnknownResource,"The resource '#{name}' was not predefined",caller)
+ raise(UnknownResource,"The resource '#{name}' was not predefined")
end
self.first_or_create(attributes.merge(extra_attributes))
@@ -117,7 +117,7 @@ def predefined_resource_with(desired_attributes={})
return predefined_resource(name) if shares_attributes
end
- raise(UnknownResource,"Could not find a predefined resource which shared the given attributes",caller)
+ raise(UnknownResource,"Could not find a predefined resource which shared the given attributes")
end
protected
@@ -139,7 +139,7 @@ def predefine(name,attributes={})
name = name.to_s
if attributes.empty?
- raise(ArgumentError,"Cannot predefine a resource with no attributes",caller)
+ raise(ArgumentError,"Cannot predefine a resource with no attributes")
end
predefined_attributes[name.to_sym] = attributes
Please sign in to comment.
Something went wrong with that request. Please try again.