Skip to content

Commit

Permalink
An attribute needs defining to allow assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehodgkiss committed Jan 9, 2015
1 parent d32f54e commit 4b4e961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lotus/validations/attribute_definer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def attribute(name, options = {}, &block)
nested_class = build_validation_class(&block)
define_lazy_reader(name, nested_class)
define_coerced_writer(name, nested_class)
defined_attributes.add(name.to_s)
validates(name, {})
else
define_attribute(name, options)
Expand Down

0 comments on commit 4b4e961

Please sign in to comment.