mix-rails-auth 0.10.4 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
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#, :registerable
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, controllers: { sessions: 'admix/sessions', passwords: 'admix/passwords' },
4
- path_names: { :sign_in => 'login', :sign_out => 'logout' }
3
+ devise_for :users, sign_out_via: 'get'
5
4
 
6
-
7
- namespace :admix do
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
 
@@ -0,0 +1,3 @@
1
+ class SessionsController < Devise::SessionsController
2
+
3
+ end
@@ -1,8 +1,8 @@
1
1
  module MixRailsAuth
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 10
5
- TINY = 4
4
+ MINOR = 11
5
+ TINY = 0
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.10.4
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-22 00:00:00.000000000 Z
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: 3667026383330273323
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: 3667026383330273323
166
+ hash: 1410616263590906491
166
167
  requirements: []
167
168
  rubyforge_project:
168
169
  rubygems_version: 1.8.24