- update_attributes({ :ends_at => Time.now.getutc(),
- :revoker_id => revoker.id,
- :needs_view => false })
+ update_attributes({
+ :ends_at => Time.now.getutc(),
+ :revoker_id => revoker.id,
+ :needs_view => false
+ }, :without_protection => true)
+ end
+
+private
+
+ ##
+ # set default values for new records.
+ def set_defaults
+ self.reason_format = "markdown" unless self.attribute_present?(:reason_format)