active-list 4.1.3 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,12 +33,6 @@ And in the view app/views/people/index.html.erb:
33
33
 
34
34
  == Build Status {<img src="https://secure.travis-ci.org/burisu/active-list.png"/>}[http://travis-ci.org/burisu/active-list]
35
35
 
36
- == To do
37
-
38
- * Provides styles as @mixins for a better customization
39
- * Adds support for Prototype JS
40
- * Adds implicit exporters JSON, XML,
41
-
42
36
  == License
43
37
 
44
38
  ActiveList is released under the MIT license:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.3
1
+ 4.1.5
@@ -66,7 +66,9 @@ module ActiveList
66
66
  code = "{:class=>'#{@name}'"+link_options+"}"
67
67
  code = "link_to(::I18n.translate('labels.#{action}'), "+url+", "+code+")"
68
68
  end
69
- code = "if ("+@options[:if].gsub('RECORD', record)+")\n"+code+"\n end" if @options[:if]
69
+ if @options[:if]
70
+ code = "if (" + (@options[:if].is_a?(Symbol) ? "#{record}.#{@options[:if]}" : @options[:if].to_s.gsub('RECORD', record)) + ")\n" + code + "\n end"
71
+ end
70
72
  code
71
73
  end
72
74
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: active-list
3
3
  version: !ruby/object:Gem::Version
4
4
  version: !binary |-
5
- NC4xLjM=
5
+ NC4xLjU=
6
6
  prerelease:
7
7
  platform: ruby
8
8
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-31 00:00:00.000000000 Z
13
+ date: 2012-12-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails