Sha256: b256d8c3c03cc455e8ff0ed40624432eb5cb9823511c18447fe20b3d9efbf144
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
module Voltron class Config def translate @translate ||= Translate.new end class Translate attr_accessor :build_environment, :enabled, :locales def initialize @build_environment ||= [:development] @enabled ||= true @locales ||= I18n.available_locales end def enabled? enabled == true end def buildable? Array.wrap(build_environment).map(&:to_s).include?(Rails.env.to_s) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems