rails_cerberus 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfff64146d80935f149a0461f01932657cf1825b
4
- data.tar.gz: 227ddd0251b2a7f93669c1dc2e29607cefe5e6a4
3
+ metadata.gz: 7e5653c6e47c9306b5e19591351c5b0937366ba9
4
+ data.tar.gz: a596e72507cbd2d9ce671f05a52af69bcb3a3710
5
5
  SHA512:
6
- metadata.gz: b662a04068d04674d1508e4991d7f9473b49a0c938159bfdce2b251a6c4e9828241e0624f7ac52899b5d16f267d38113f092f584f65733ce994840c5d1c9b043
7
- data.tar.gz: c6f3e592366ba89b0969ab917ca31bf707d0c24111035516ce1e90c96b745fe8853ca4ff9334dc628fa84dfc850b90172fa8f30d6e1867b48386f6d2e7c17b50
6
+ metadata.gz: 03d0c1489afb0e700b74baf30f21bdddbc6a9767f66f1428378c884ed789a6c4fdde4695b993f01bce9b0bb9e528195fa5173709d92a4a0ccae324e2c52f3a7c
7
+ data.tar.gz: d81b801e16ca79eaf34cc30c9200a248908a1c66a3d3a88774dfbb91f3803031a39bccdfa7de8df7273de7093a76baf98a15525b59e72e41d2a0a850363ab4de
@@ -3,7 +3,7 @@ require 'cerberus/identity'
3
3
  class Cerberus::SessionsController < ActionController::Base
4
4
  def create
5
5
  identity = Cerberus::Identity.find_or_create_by! auth.slice(:provider, :uid)
6
- identity.user ||= Cerberus.config.user_class.constantize.find_or_create_by! auth.slice(:email)
6
+ identity.user ||= Cerberus.config[:identities][:user_class_name].constantize.find_or_create_by! auth.slice(:email)
7
7
  identity.save
8
8
 
9
9
  session[:user_id] = identity.user.id
@@ -1,3 +1,3 @@
1
1
  module Cerberus
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_cerberus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Oga