lib/hobo/permissions.rb in hobo-0.8.8 vs lib/hobo/permissions.rb in hobo-0.8.9

- old
+ new

@@ -328,10 +328,10 @@ ensure deunknownify_attribute(attribute) if attribute end - # Add some singleton methods to +record+ so give the effect that +attribute+ is unknown. That is, + # Add some singleton methods to +record+ to give the effect that +attribute+ is unknown. That is, # attempts to access the attribute will result in a Hobo::UndefinedAccessError def unknownify_attribute(attr) metaclass.class_eval do define_method attr do raise Hobo::UndefinedAccessError