radiant-reader-extension 3.0.29 → 3.0.30

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.
@@ -62,7 +62,7 @@ protected
62
62
  end
63
63
 
64
64
  def get_group
65
- model.group = Group.find(params[:group_id]) if params[:group_id]
65
+ @group = Group.find(params[:group_id]) if params[:group_id]
66
66
  end
67
67
 
68
68
  end
@@ -16,12 +16,12 @@
16
16
  - form.edit_email do
17
17
  %p
18
18
  = f.label :email
19
- = f.text_field "email", :class => 'textbox', :size => 32, :maxlength => 255
19
+ = f.text_field :email, :class => 'textbox', :size => 32, :maxlength => 255
20
20
 
21
21
  - form.edit_nickname do
22
22
  %p
23
23
  = f.label :nickname
24
- = f.text_field "login", :class => 'textbox', :size => 32, :maxlength => 255
24
+ = f.text_field :nickname, :class => 'textbox', :size => 32, :maxlength => 255
25
25
 
26
26
  - form.edit_password do
27
27
  = render "password_fields", :f => f
@@ -1,5 +1,5 @@
1
1
  module RadiantReaderExtension
2
- VERSION = '3.0.29'
2
+ VERSION = '3.0.30'
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"
data/lib/reader_tags.rb CHANGED
@@ -73,7 +73,7 @@ module ReaderTags
73
73
  we are on an uncached page.
74
74
  }
75
75
  tag 'reader' do |tag|
76
- tag.expand if get_reader(tag)
76
+ tag.expand if tag.locals.reader = get_reader(tag)
77
77
  end
78
78
 
79
79
  [:name, :forename, :surname, :nickname, :preferred_name, :preferred_informal_name, :email, :description, :login].each do |field|
@@ -178,7 +178,7 @@ module ReaderTags
178
178
  private
179
179
 
180
180
  def get_reader(tag)
181
- tag.locals.reader ||= if tag.attr['id']
181
+ if tag.attr['id']
182
182
  Reader.find_by_id(tag.attr['id'].to_i)
183
183
  elsif tag.locals.page.respond_to? :reader
184
184
  tag.locals.page.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: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 29
10
- version: 3.0.29
9
+ - 30
10
+ version: 3.0.30
11
11
  platform: ruby
12
12
  authors:
13
13
  - William Ross
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-17 00:00:00 Z
18
+ date: 2011-11-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: radiant-layouts-extension
@@ -359,7 +359,7 @@ files:
359
359
  homepage: http://radiant.spanner.org/reader
360
360
  licenses: []
361
361
 
362
- post_install_message: "\n Add this to your radiant project with a line in your Gemfile:\n\n gem 'radiant-reader-extension', '~> 3.0.29'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
362
+ post_install_message: "\n Add this to your radiant project with a line in your Gemfile:\n\n gem 'radiant-reader-extension', '~> 3.0.30'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
363
363
  rdoc_options: []
364
364
 
365
365
  require_paths: