Sha256: e52a34eb301ad67a570aef4f9e23d3011012f25175b907b7dd25d965b9bdd517

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

module ActsAsFavoritor

    class << self
        attr_accessor :configuration
    end

    def self.configure
        self.configuration ||= Configuration.new
        yield configuration
    end
    
    class Configuration

        attr_accessor :default_scope
        attr_accessor :cache

        def initialize
            @default_scope = 'favorite'
            @cache = false
        end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_favoritor-2.0.1 lib/acts_as_favoritor/configuration.rb