Sha256: 2a56af4b5c007a7fbb059558f76ee9550181d797927e02993cf5e7ca402c6420

Contents?: true

Size: 353 Bytes

Versions: 16

Compression:

Stored size: 353 Bytes

Contents

require 'hashie'

module Kuroko2
  class Configuration
    class << self
      DEFAULT_CONFIG = { table_name_prefix: 'kuroko2_' }.freeze

      def config
        @config ||= build_config
      end

      private

      def build_config
        Hashie::Mash.new(DEFAULT_CONFIG.merge(Rails.application.config_for('kuroko2')))
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kuroko2-0.8.0 lib/kuroko2/configuration.rb
kuroko2-0.7.0 lib/kuroko2/configuration.rb
kuroko2-0.6.0 lib/kuroko2/configuration.rb
kuroko2-0.5.2 lib/kuroko2/configuration.rb
kuroko2-0.5.1 lib/kuroko2/configuration.rb
kuroko2-0.5.0 lib/kuroko2/configuration.rb
kuroko2-0.4.6 lib/kuroko2/configuration.rb
kuroko2-0.4.5 lib/kuroko2/configuration.rb
kuroko2-0.4.4 lib/kuroko2/configuration.rb
kuroko2-0.4.3 lib/kuroko2/configuration.rb
kuroko2-0.4.2 lib/kuroko2/configuration.rb
kuroko2-0.4.1 lib/kuroko2/configuration.rb
kuroko2-0.4.0 lib/kuroko2/configuration.rb
kuroko2-0.3.4 lib/kuroko2/configuration.rb
kuroko2-0.3.3 lib/kuroko2/configuration.rb
kuroko2-0.3.2 lib/kuroko2/configuration.rb