lib/paperweight/hook.rb in paperweight-0.1.0 vs lib/paperweight/hook.rb in paperweight-0.1.1
- old
+ new
@@ -43,9 +43,10 @@
def define_paperweight_setter_for(name)
define_method(name.url_eq) do |value|
instance_variable_set(name.url_attr, value)
self[name.processing] = value ? true : false
+ self.updated_at = Time.now if value
end
end
def define_paperweight_after_commit_for(name)
after_commit if: name.url do