Sha256: 852b697fad38c45cbb42f1746dd1ae7eb9bec14b14d61b817e938ac817e05b37
Contents?: true
Size: 792 Bytes
Versions: 5
Compression:
Stored size: 792 Bytes
Contents
require "naf/engine" require 'naf/configuration' module Naf class << self attr_writer :configuration def configure yield(configuration) end def configuration @configuration ||= Configuration.new end def schema_name configuration.schema_name end def model_class configuration.model_class.constantize end def controller_class configuration.controller_class.constantize end def title configuration.title end def papertrail_group_id configuration.papertrail_group_id end def papertrail_token configuration.papertrail_token end def layout configuration.layout end def using_another_database? model_class != ActiveRecord::Base end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
naf-1.1.4 | lib/naf.rb |
naf-1.1.3 | lib/naf.rb |
naf-1.1.2 | lib/naf.rb |
naf-1.1.1 | lib/naf.rb |
naf-1.1.0 | lib/naf.rb |