lib/scrivito/attribute_definition.rb in scrivito_sdk-1.5.5 vs lib/scrivito/attribute_definition.rb in scrivito_sdk-1.6.0.rc1
- old
+ new
@@ -85,10 +85,10 @@
values.each(&method(:assert_valid_value))
end
if only = @options[:only]
assert_restrictable
- @valid_classes = [@options[:only]].flatten
+ @valid_classes = [only].flatten
@valid_classes.each(&method(:assert_valid_restriction_class))
end
end
def assert_valid_value(value)