midas-g_sectioned_shower 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
data/g_sectioned_shower.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{g_sectioned_shower}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["C. Jason Harrelson (midas)"]
|
9
|
-
s.date = %q{2009-04-
|
9
|
+
s.date = %q{2009-04-15}
|
10
10
|
s.description = %q{A Guilded (http://github.com/midas/guilded/tree/master) component that creates adaptaple show (detail) views of a single ActiveRecord object.}
|
11
11
|
s.email = ["jason@lookforwardenterprises.com"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
|
data/lib/g_sectioned_shower.rb
CHANGED
@@ -178,6 +178,7 @@ module GSectionedShower
|
|
178
178
|
reflected_humanized_name = reflected_name.humanize
|
179
179
|
attrs_name = "#{reflected_singular_name}_attributes"
|
180
180
|
attrs = section[ attrs_name.to_sym ]
|
181
|
+
scoped_by = section[ "#{reflection.name.to_s.singularize}_scoped_by".to_sym ]
|
181
182
|
max_name = "#{reflected_singular_name}_max"
|
182
183
|
max = section[ max_name.to_sym ]
|
183
184
|
showing_less_than_all = max && max < ar_obj.send( methods[index] ).count
|
@@ -231,7 +232,7 @@ module GSectionedShower
|
|
231
232
|
throw "The 'links' option must have values in it, or be left out of the options for the section." if !links.nil? && links.empty?
|
232
233
|
unless links.nil?
|
233
234
|
link_entry = find_link_entry( links, rel_method ) # section.has_key?( :links )
|
234
|
-
|
235
|
+
opts = Hash.new
|
235
236
|
opts.merge!( :scoped_by => scoped_by ) unless scoped_by.nil?
|
236
237
|
path_helpers = Guilded::Rails::Helpers.resolve_rest_path_helpers( assoc_ar_obj, opts )
|
237
238
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midas-g_sectioned_shower
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C. Jason Harrelson (midas)
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-15 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|