radiant-reader-extension 3.0.35 → 3.0.36
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ class Admin::GroupsController < Admin::ResourceController
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def load_models
|
12
|
-
self.models = paginated? ? model_class.
|
12
|
+
self.models = paginated? ? model_class.paginate(pagination_parameters) : model_class.all
|
13
13
|
end
|
14
14
|
|
15
15
|
def load_model
|
@@ -1,7 +1,6 @@
|
|
1
1
|
class Admin::ReadersController < Admin::ResourceController
|
2
2
|
helper :reader
|
3
3
|
paginate_models
|
4
|
-
before_filter :redirect_to_user, :only => :edit
|
5
4
|
|
6
5
|
only_allow_access_to :new, :create, :edit, :update, :remove, :destroy, :settings,
|
7
6
|
:when => :admin,
|
@@ -18,12 +17,4 @@ class Admin::ReadersController < Admin::ResourceController
|
|
18
17
|
|
19
18
|
private
|
20
19
|
|
21
|
-
def redirect_to_user
|
22
|
-
if model.is_user?
|
23
|
-
redirect_to edit_admin_user_url(model.user)
|
24
|
-
return false
|
25
|
-
end
|
26
|
-
true
|
27
|
-
end
|
28
|
-
|
29
20
|
end
|
@@ -1,14 +1,11 @@
|
|
1
1
|
- chooser ||= @page
|
2
2
|
- if chooser
|
3
|
-
- root ||= nil
|
4
3
|
- disabled ||= false
|
5
|
-
- branches = root ? root.children : Group.roots
|
6
4
|
|
7
|
-
%ul
|
8
|
-
-
|
5
|
+
%ul
|
6
|
+
- Group.all.each do |group|
|
9
7
|
%li
|
10
8
|
- checked = chooser.has_group?(group)
|
11
|
-
= check_box_tag 'group_ids', group.id, checked, :id => "group_ids_#{group.id}", :
|
9
|
+
= check_box_tag 'group_ids', group.id, checked, :id => "group_ids_#{group.id}", :disabled => disabled
|
12
10
|
%label{:for => "group_ids_#{group.id}", :class => 'checkbox'}
|
13
11
|
= group.name
|
14
|
-
= render :partial => 'admin/groups/chooser', :object => chooser, :locals => {:root => group, :disabled => checked}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantReaderExtension
|
2
|
-
VERSION = '3.0.
|
2
|
+
VERSION = '3.0.36'
|
3
3
|
SUMMARY = %q{Reader/viewer/visitor registration, login and access-control for Radiant CMS}
|
4
4
|
DESCRIPTION = %q{Provides reader/member/user registration and management functions including password-reminder, group-based page access control and administrative email.}
|
5
5
|
URL = "http://radiant.spanner.org/reader"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-reader-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 79
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 36
|
10
|
+
version: 3.0.36
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- William Ross
|
@@ -365,7 +365,7 @@ files:
|
|
365
365
|
homepage: http://radiant.spanner.org/reader
|
366
366
|
licenses: []
|
367
367
|
|
368
|
-
post_install_message: "\n Add this to your radiant project with a line in your Gemfile:\n\n gem 'radiant-reader-extension', '~> 3.0.
|
368
|
+
post_install_message: "\n Add this to your radiant project with a line in your Gemfile:\n\n gem 'radiant-reader-extension', '~> 3.0.36'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
|
369
369
|
rdoc_options: []
|
370
370
|
|
371
371
|
require_paths:
|