Sha256: abb5752a435861225b355e58c8b2bbefe39bbfbd7c01ffc0410aed0c3360ab9b

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

module Shopper
  module Configuration
    attr_accessor :expires_after,
                  :parent_controller,
                  :parent_mailer


    def configure
      yield self
    end

    def self.extended(base)
      base.set_default_configuration
    end

    def set_default_configuration
      self.expires_after     = 5.hours
      self.parent_controller = '::ApplicationController'
      self.parent_mailer     = '::ApplicationMailer'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 lib/shopper/configuration.rb