Sha256: db6832bb446213d7383c53bd6a46b3a425cd93ba0ade43672b11a66c9f5db4d6

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

module Refinery
  module Authentication
    module Devise
      include ActiveSupport::Configurable

      config_accessor :superuser_can_assign_roles, :email_from_name

      self.superuser_can_assign_roles = false
      self.email_from_name = "no-reply"

      class << self
        def email_from_name
          ::I18n.t(
            'email_from_name',
            scope: 'refinery.authentication.config',
            default: config.email_from_name
          )
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-authentication-devise-2.0.0 lib/refinery/authentication/devise/configuration.rb
refinerycms-authentication-devise-1.0.4 lib/refinery/authentication/devise/configuration.rb
refinerycms-authentication-devise-1.0.3 lib/refinery/authentication/devise/configuration.rb
refinerycms-authentication-devise-1.0.2 lib/refinery/authentication/devise/configuration.rb
refinerycms-authentication-devise-1.0.1 lib/refinery/authentication/devise/configuration.rb
refinerycms-authentication-devise-1.0.0 lib/refinery/authentication/devise/configuration.rb