Sha256: dd3fbda67096bfe528edcda15cf457a26c4fc9ca92998b2b26b6eebe7ef865da

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

require 'acts_as_list'
require 'simple_form'

require "advert_selector/engine"
require "advert_selector/errors_cache"

module AdvertSelector

  mattr_accessor :default_banner_test_url
  mattr_accessor :default_time_zone
  mattr_accessor :admin_access_class

  self.default_banner_test_url = "http://localhost:3000/?"
  self.default_time_zone = 'UTC'

  class AdminAccessClassDefault
    def self.admin_access(controller)
      Rails.env.development?
    end
  end
  class AdminAccessClassAlwaysTrue
    def self.admin_access(controller)
      true
    end
  end

  self.admin_access_class = AdminAccessClassDefault

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
advert_selector-3.0.1 lib/advert_selector.rb
advert_selector-3.0.0 lib/advert_selector.rb
advert_selector-2.0.1 lib/advert_selector.rb