mix-auth 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,3 @@
1
1
  class Admix::UsersController < Admix::InheritedController
2
- #defaults route_prefix: 'admix'
3
-
4
- #breadcrumbs.add t('users.users')
5
2
 
6
-
7
- before_filter :get_report
8
-
9
- protected
10
- def get_report
11
- @report = Admix::UserReport.new(params[:admix_user_report])
12
- @assets = @report.assets.paginate(:page => params[:page], :per_page => 2)
13
- end
14
-
15
-
16
3
  end
@@ -1,4 +1,4 @@
1
- class Admix::UserReport
1
+ class Admix::UsersDatagrid
2
2
 
3
3
  include Datagrid
4
4
 
@@ -11,5 +11,7 @@ class Admix::UserReport
11
11
 
12
12
  column :email
13
13
  column :last_sign_in_at
14
+
15
+ include Admix::TableActions
14
16
 
15
17
  end
data/lib/auth/engine.rb CHANGED
@@ -1,4 +1,19 @@
1
1
  module Auth
2
2
  class Engine < ::Rails::Engine
3
+
4
+ def navigation
5
+ if defined? Admix
6
+ Admix::Navigation::NavBar.post_menu do
7
+ Admix::Navigation::NavBar.find(:general) do |menu|
8
+ menu.submenu do |submenu|
9
+ submenu.key = :users
10
+ submenu.title = I18n.t 'users.users'
11
+ submenu.url = 'admix_users_url'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+
3
18
  end
4
19
  end
data/lib/auth/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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: 2012-12-28 00:00:00.000000000 Z
13
+ date: 2013-01-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -116,23 +116,23 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - app/controllers/admix/users_controller.rb
119
120
  - app/assets/stylesheets/admix/users.css
120
121
  - app/assets/javascripts/admix/users.js
121
- - app/controllers/admix/users_controller.rb
122
- - app/models/user.rb
123
- - app/models/admix/user_report.rb
124
122
  - app/helpers/admix/users_helper.rb
125
- - config/initializers/devise.rb
126
- - config/routes.rb
123
+ - app/models/admix/users_datagrid.rb
124
+ - app/models/user.rb
125
+ - config/locales/auth.en.yml
127
126
  - config/locales/devise.pt-BR.yml
128
- - config/locales/auth.pt-BR.yml
129
127
  - config/locales/devise.en.yml
130
- - config/locales/auth.en.yml
128
+ - config/locales/auth.pt-BR.yml
129
+ - config/initializers/devise.rb
130
+ - config/routes.rb
131
+ - lib/tasks/auth_tasks.rake
131
132
  - lib/auth/version.rb
132
133
  - lib/auth/engine.rb
133
- - lib/tasks/auth_tasks.rake
134
- - lib/mix-auth.rb
135
134
  - lib/auth.rb
135
+ - lib/mix-auth.rb
136
136
  - MIT-LICENSE
137
137
  - Rakefile
138
138
  - README.rdoc
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: 601777783800646623
153
+ hash: 2999273764705693438
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  none: false
156
156
  requirements:
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  segments:
161
161
  - 0
162
- hash: 601777783800646623
162
+ hash: 2999273764705693438
163
163
  requirements: []
164
164
  rubyforge_project:
165
165
  rubygems_version: 1.8.24