Sha256: 87033713a896390451a8f6f8f9f27525391fdfb53282320bf9e7dfd16b04e925
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
module ActsAsFavoritor def self.default_scope config = get_config if config&.key :default_scope config[:default_scope] else 'favorite' end end private def self.get_config require 'yaml' begin YAML.load_file 'config/acts_as_favoritor.yml' rescue Exception end end end
Version data entries
5 entries across 5 versions & 1 rubygems