Sha256: 44784ba767c3bd2de44ab8909697f50e7878ec106ba668794e412ffdb6f1ab82

Contents?: true

Size: 178 Bytes

Versions: 4

Compression:

Stored size: 178 Bytes

Contents

class <%= resource_name.classify %> < ActiveRecord::Base

  class << self
    def find_identity(uid, provider)
      where(uid: uid, provider: provider).first
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mac_generators-0.3.1 lib/generators/authentication/omniauth/templates/identity.rb
mac_generators-0.2.1 lib/generators/authentication/omniauth/templates/identity.rb
mac_generators-0.2.0 lib/generators/authentication/omniauth/templates/identity.rb
mac_generators-0.1.1 lib/generators/authentication/omniauth/templates/identity.rb