activate-admin 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTkwNDU5OWQ0MGE5OGYwMjcxMmQ1NmZmNTk2OGY3NWUyMDg0ZTdmYw==
4
+ ODAwNGQ1YThkYjE1MWFkNGQwNWZiZDc5MTQwZDM1YTBhMzNiMmI3ZQ==
5
5
  data.tar.gz: !binary |-
6
- OTU4OTA4Mzc5ZDI2N2Y1NzdjYjMyYzY3M2QwNWY3ZDZhZWVhN2RiOQ==
6
+ OThkYzFiM2E1MThiYjEwZjllNjJhNTNkMTgwYWYzNzllMmZhNDQ0YQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTgwMWU0OWYwMTJmMDQ4NTEyOTY1YTA4N2NiMTUyNjYzNDBmZDVhMGJjYjJk
10
- ODY5ZmEyOGFhMDQ2MzE1ZTRjYTc3MGY4MWNhYTE2MWQxYTNlYTQzZWIxZjg2
11
- ZjBkODJiYjU3MDdjZmZlZWQyOWE1ODVhNjU4NmY1OTEzMmQwMmQ=
9
+ YWJlMDVkODMxZGQ1MWEyMTY2ZGMzZGU4ZjE1ZmRhNWNkYjZjYTc3Mzk0YTZk
10
+ NjQ5MmNlNjg2NDBlODg5ZTNmYzU5MzgzOGUxN2Y5MDBkNTNlZGVmMGViNzll
11
+ YjRjYTJhODYyNmJlZWYzMmJlY2UxZmIzOTQxZjBjOGM4ZGMxNDI=
12
12
  data.tar.gz: !binary |-
13
- OTdjMmFkYjg5NGI0YjA5OWI3Yzk0Nzg3NjA4NzQ1MmFkMDcyNjZhMmQ1Nzkz
14
- NGI3Yzc1NmFiZWVhNWY2YjhjZDI5NDNiY2QzN2Y0NWRmZTZlMGRjMGJjYzRi
15
- Nzk3N2UzMmMxYzVhNTgzZWFlYTQ1ZDYwNGRmN2Q0OWRkYzBlMmQ=
13
+ NWM3ZDcyYTljMjdlOWRhNDY1ZWI3MTJkMjI4ODkwMjEwZmM0ZTNjZjk2NzY3
14
+ MTdiM2U3MGI5YjdjYzZjMGY0YTczYmQ2OTU4Yzk1NjQ1ZGI4MzFmM2IyYjM2
15
+ YmRmNzQ2ZDAwNDc0N2QwOTQ5ZDgyYTYwMTJmMmIyZjZjZmZlYTU=
@@ -61,7 +61,7 @@
61
61
  <i class="icon-caret-up"></i>
62
62
  <% end %>
63
63
  </a>
64
- <% else %>
64
+ <% elsif model.fields[fieldname.to_s] %>
65
65
  <a title="Order by <%=fieldname%>" href="javascript:;" class="od odn">
66
66
  <i class="icon-caret-right"></i>
67
67
  </a>
@@ -69,7 +69,7 @@
69
69
 
70
70
  <% if @f and @f[fieldname] %>
71
71
  <a title="Searching for '<%=@f[fieldname]%>'; click to search again" href="javascript:;" class="f"><i class="icon-search"></i></a>
72
- <% elsif model.fields[fieldname.to_s].type == String or (fieldname.to_s.ends_with?('_id') && Object.const_defined?((assoc_name = fieldname.to_s.gsub('_id','').camelize))) %>
72
+ <% elsif (fieldobj = model.fields[fieldname.to_s]) and fieldobj.type == String or (fieldname.to_s.ends_with?('_id') && Object.const_defined?((assoc_name = fieldname.to_s.gsub('_id','').camelize))) %>
73
73
  <a title="Search in <%=fieldname%>" href="javascript:;" class="f fn"><i class="icon-search"></i></a>
74
74
  <% end %>
75
75
  </th>
@@ -1,3 +1,3 @@
1
1
  module ActivateAdmin
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activate-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Reid