qui-index-table 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/qui-index-table-main-helper.rb +0 -5
- metadata +3 -3
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ begin
|
|
9
9
|
gemspec.email = "marcin@saepia.net"
|
10
10
|
gemspec.homepage = "http://q.saepia.net"
|
11
11
|
gemspec.authors = ["Marcin Lewandowski"]
|
12
|
-
gemspec.version = "0.0.
|
12
|
+
gemspec.version = "0.0.7"
|
13
13
|
gemspec.files = Rake::FileList.new [ "MIT-LICENSE", "Rakefile", "public/stylesheets/qui/*", "lib/*", "rails/*", "README.rdoc" ]
|
14
14
|
end
|
15
15
|
rescue LoadError
|
@@ -24,20 +24,15 @@ module QUI
|
|
24
24
|
# Of course if it's not overriden by :class_name option.
|
25
25
|
|
26
26
|
if options[:class_name] and options[:class_name].respond_to? :ancestors and options[:class_name].ancestors.include? ActiveRecord::Base
|
27
|
-
logger.info "1"
|
28
27
|
klass = options[:class_name]
|
29
28
|
|
30
29
|
elsif data.first.nil?
|
31
|
-
logger.info "2"
|
32
30
|
klass = controller.class.to_s.demodulize.gsub("Controller", "").singularize.constantize
|
33
31
|
elsif data.first.class.respond_to? :human_attribute_name
|
34
|
-
logger.info "3"
|
35
32
|
|
36
33
|
klass = data.first.class
|
37
34
|
end
|
38
35
|
|
39
|
-
logger.info klass.inspect
|
40
|
-
|
41
36
|
if klass
|
42
37
|
concat content_tag(:th, klass.human_attribute_name(h.to_s[1..-1]))
|
43
38
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qui-index-table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marcin Lewandowski
|