Sha256: 7074a8e74d0a2017c837afb8cd981d0be818960cc3b3aeafe17b2c56b2529b4b
Contents?: true
Size: 854 Bytes
Versions: 2
Compression:
Stored size: 854 Bytes
Contents
module BrowsingHistory::Configuration # storage type attr_writer :storage_types # BrowsingHistory namespace attr_writer :namespace # cofigure method def configure yield self end # BrowsingHistory storage_types # # @return the BrowsingHistory storage. default of :redis if not set. def storage_types @storage_types ||= %i(redis active_record) end # BrowsingHistory storage # # @return the BrowsingHistory storage. default of :redis if not set. def storage_type @storage_type ||= storage_types.first end def storage_type=(type) return false unless storage_types.incude?(type) @storage_type = type end # BrowsingHistory namespace for Redis. # # @return the BrowsingHistory namespace. default of 'activity_feed' if not set. def namespace @namespace ||= 'browsing_history' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
browsing_history-0.0.3 | lib/browsing_history/configuration.rb |
browsing_history-0.0.2 | lib/browsing_history/configuration.rb |