Sha256: 59323eac6cca78f3176cc405798f4cc09e80a46e48e0098f6e097f0dc85dae92
Contents?: true
Size: 525 Bytes
Versions: 11
Compression:
Stored size: 525 Bytes
Contents
module AdminIt module Config def self.root @root ||= Rails.root.join('app', 'admin_it') end def self.root=(value) value = File.expand_path(value, Rails.root) fail ArgumentError unless File.directory?(value) @root = value end def self.controller @controller ||= ActionController::Base end def self.controller=(value) unless value <= ActionController::Base fail ArgumentError, 'Wrong controller' end @controller = value end end end
Version data entries
11 entries across 11 versions & 1 rubygems