Sha256: e92270063d80d4f9fed5ef0dd9dd25a82f5de4a3fd7cb3b254fef0dc1ef67c60
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
module Season class Configuration attr_accessor :include_by_default def initialize @include_by_default = false end end def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration auto_include_scopes end private def self.auto_include_scopes if configuration.include_by_default warn "[DEPRECATED] Include season scopes by default is deprecated and will be removed before v0.5 - See https://github.com/joaodiogocosta/season for more" ActiveRecord::Base.send(:include, Season::Legacy) if defined? ActiveRecord end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
season-0.3 | lib/season/configuration.rb |
season-0.2 | lib/season/configuration.rb |