Sha256: 7e0e1aa9931324a8a5fb061d106f5812184923bf0c00cef9f5b5596a0ff1fb31

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 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

4 entries across 4 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre40 lib/enju_circulation/profile.rb
enju_circulation-0.1.0.pre39 lib/enju_circulation/profile.rb
enju_circulation-0.1.0.pre38 lib/enju_circulation/profile.rb
enju_circulation-0.1.0.pre37 lib/enju_circulation/profile.rb