Sha256: 38d0e949a7b729ea213d3b999221efca466286b2305c8e5f86f08e0553a406db
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
module EnjuCirculation module EnjuProfile def self.included(base) base.extend ClassMethods end module ClassMethods def enju_circulation_profile_model include InstanceMethods attr_accessible :save_checkout_history, :checkout_icalendar_token attr_accessible :save_checkout_history, :checkout_icalendar_token, as: :admin end end module InstanceMethods def reset_checkout_icalendar_token self.checkout_icalendar_token = Devise.friendly_token end def delete_checkout_icalendar_token self.checkout_icalendar_token = nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.1.0.pre41 | lib/enju_circulation/profile.rb |