Sha256: 34ef136618bdb4282f19b1a97271d3c18f9c0f4762e1d8c2f2fc12809169e8e9

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require 'graphql_devise/model/with_email_updater'

module GraphqlDevise
  module Concerns
    module AdditionalModelMethods
      extend ActiveSupport::Concern

      class_methods do
        def reconfirmable
          devise_modules.include?(:confirmable) && column_names.include?('unconfirmed_email')
        end
      end

      def update_with_email(attributes = {})
        GraphqlDevise::Model::WithEmailUpdater.new(self, attributes).call
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql_devise-0.18.2 app/models/graphql_devise/concerns/additional_model_methods.rb
graphql_devise-0.18.1 app/models/graphql_devise/concerns/additional_model_methods.rb
graphql_devise-0.18.0 app/models/graphql_devise/concerns/additional_model_methods.rb
graphql_devise-0.17.1 app/models/graphql_devise/concerns/additional_model_methods.rb
graphql_devise-0.17.0 app/models/graphql_devise/concerns/additional_model_methods.rb
graphql_devise-0.16.0 app/models/graphql_devise/concerns/additional_model_methods.rb
graphql_devise-0.15.0 app/models/graphql_devise/concerns/additional_model_methods.rb