Sha256: aeaec64f8fc05928808e263db9c00471331e186811b2d30cddffedf5ae23523a

Contents?: true

Size: 675 Bytes

Versions: 7

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

module DeviseG5Authenticatable
  module Models
    # Support protected attributes for users in apps that require it
    module ProtectedAttributes
      extend ActiveSupport::Concern

      included do
        attr_accessible :email, :password, :password_confirmation,
                        :current_password, :provider, :uid, :updated_by
      end
    end
  end
end

module Devise
  module Models
    # If this file is required, then protected attributes will be automatically
    # mixed in to the g5 authenticatable model(s)
    module G5Authenticatable
      include DeviseG5Authenticatable::Models::ProtectedAttributes
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 lib/devise_g5_authenticatable/models/protected_attributes.rb
devise_g5_authenticatable-1.0.2.rc.3 lib/devise_g5_authenticatable/models/protected_attributes.rb
devise_g5_authenticatable-1.0.2.rc.2 lib/devise_g5_authenticatable/models/protected_attributes.rb
devise_g5_authenticatable-1.0.2.rc.1 lib/devise_g5_authenticatable/models/protected_attributes.rb
devise_g5_authenticatable-1.0.1.rc.1 lib/devise_g5_authenticatable/models/protected_attributes.rb
devise_g5_authenticatable-1.0.0 lib/devise_g5_authenticatable/models/protected_attributes.rb
devise_g5_authenticatable-1.0.0.pre.1 lib/devise_g5_authenticatable/models/protected_attributes.rb