Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reverse arguments to attribute

  • Loading branch information...
commit 1d60bfa37bcbc472553bcca45efa4cb05a85a85b 1 parent a5a9e24
@thomas-mcdonald authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/serel/base.rb
View
2  lib/serel/base.rb
@@ -70,7 +70,7 @@ def self.attributes_on(*splat)
end
end
- def self.attribute(klass, name)
+ def self.attribute(name, klass)
self.attributes = {} unless self.attributes
self.attributes[name] = klass
define_method(name) { self[name.to_sym] }
Please sign in to comment.
Something went wrong with that request. Please try again.