mix-rails-auth 0.10.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/user.rb +1 -1
- data/config/routes.rb +3 -4
- data/config/sessions.rb +3 -0
- data/lib/mix-rails-auth/version.rb +2 -2
- metadata +5 -4
data/app/models/user.rb
CHANGED
@@ -9,7 +9,7 @@ class User
|
|
9
9
|
# :token_authenticatable, :confirmable,
|
10
10
|
# :lockable, :timeoutable and :omniauthable
|
11
11
|
devise :database_authenticatable, :recoverable, :rememberable,
|
12
|
-
:trackable, :validatable
|
12
|
+
:trackable, :validatable, :registerable
|
13
13
|
|
14
14
|
## Database authenticatable
|
15
15
|
field :email, :type => String, :default => ""
|
data/config/routes.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
2
|
|
3
|
-
devise_for :users,
|
4
|
-
path_names: { :sign_in => 'login', :sign_out => 'logout' }
|
3
|
+
devise_for :users, sign_out_via: 'get'
|
5
4
|
|
6
|
-
|
7
|
-
|
5
|
+
scope Admix::namespace_path, as: :admix, module: :admix do
|
6
|
+
devise_for :users, sign_out_via: 'get', controllers: {sessions: 'admix/sessions', passwords: 'admix/passwords'}, :path_names => { :sign_in => 'login', :sign_out => 'logout' }
|
8
7
|
resources :users
|
9
8
|
end
|
10
9
|
|
data/config/sessions.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mix-rails-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- app/views/admix/users/_show.html.haml
|
127
127
|
- app/views/admix/users/_table_actions.html.haml
|
128
128
|
- app/views/admix/users/_form_fields.html.haml
|
129
|
+
- config/sessions.rb
|
129
130
|
- config/locales/auth.en.yml
|
130
131
|
- config/locales/devise.pt-BR.yml
|
131
132
|
- config/locales/devise.en.yml
|
@@ -153,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
154
|
version: '0'
|
154
155
|
segments:
|
155
156
|
- 0
|
156
|
-
hash:
|
157
|
+
hash: 1410616263590906491
|
157
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
159
|
none: false
|
159
160
|
requirements:
|
@@ -162,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
163
|
version: '0'
|
163
164
|
segments:
|
164
165
|
- 0
|
165
|
-
hash:
|
166
|
+
hash: 1410616263590906491
|
166
167
|
requirements: []
|
167
168
|
rubyforge_project:
|
168
169
|
rubygems_version: 1.8.24
|