Sha256: c02922f9bb4c64d7bc25210795a4dc13d2822cd5d6cdc9e275ed7562aebdd533
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
require 'federails/version' require 'federails/engine' require 'federails/configuration' # rubocop:disable Style/ClassVars module Federails mattr_reader :configuration @@configuration = Configuration # Make factories available config.factory_bot.definition_file_paths += [File.expand_path('spec/factories', __dir__)] if defined?(FactoryBotRails) def self.configure yield @@configuration end def self.config_from(name) # rubocop:disable Metrics/MethodLength config = Rails.application.config_for name [ :app_name, :app_version, :force_ssl, :site_host, :site_port, :enable_discovery, :app_layout, :user_class, # @deprecated :server_routes_path, :client_routes_path, :user_profile_url_method, # @deprecated :user_name_field, # @deprecated :user_username_field, # @deprecated ].each { |key| Configuration.send :"#{key}=", config[key] } end end # rubocop:enable Style/ClassVars
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
federails-0.1.0 | lib/federails.rb |