Sha256: c2cbb5a09f06eee8c6a96a80cf51185bdbb41a38d7dcaa438b5139fd6058bdb1

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

module EnjuCirculation
  module EnjuProfile
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      def enju_circulation_profile_model
        include InstanceMethods
      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.pre45 lib/enju_circulation/profile.rb
enju_circulation-0.1.0.pre44 lib/enju_circulation/profile.rb
enju_circulation-0.1.0.pre43 lib/enju_circulation/profile.rb
enju_circulation-0.1.0.pre42 lib/enju_circulation/profile.rb