Sha256: eceea59f74144f802ba31923a7e322c1f8c339d94282d0dd14a78b2016f6a636
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
class Exception2dbConfig cattr_accessor :setting def self.set=(input = {}) valid_keys = %w(is_allowed_to_view).collect(&:intern) extra_keys = input.keys - valid_keys raise "Following options are not supported. #{extra_keys.inspect}" unless extra_keys.blank? self.setting ||= {} self.setting.merge!(input) end def self.initialize_defaults self.setting = { :plugin_dir => File.expand_path(File.join(File.dirname(__FILE__), '..', '..')), :will_paginate_per_page => 50, # cucumber test was failing with Rails.env.development? . Need to investigate further TODO :is_allowed_to_view => lambda { |controller| return true if RAILS_ENV == 'development' } } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception2db-0.0.1 | lib/exception2db/config.rb |