Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor conditional refactoring

  • Loading branch information...
commit 3078e2a55e948e8691fe8d5d15ddd4650010c68b 1 parent 7b1bf9a
@avdgaag authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 lib/bol/product.rb
View
11 lib/bol/product.rb
@@ -35,14 +35,11 @@ def referral_url(site_id)
end
def method_missing(name, *args)
- if attributes.keys.include?(name)
- if name =~ /=$/
- attributes[name] = *args
- else
- attributes[name]
- end
+ return super unless attributes.keys.include?(name)
+ if name =~ /=$/
+ attributes[name] = *args
else
- super
+ attributes[name]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.