schofield 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -8,7 +8,7 @@
8
8
 
9
9
  - <%= sco_underscored_plural %>.each do |<%= sco_underscored %>|
10
10
 
11
- %tr
11
+ %tr<%- if actions.include?('sort') -%>{ :class => 'dragable', :id => "<%= sco_underscored %>_#{<%= sco_underscored %>.id}"}<%- end -%>
12
12
 
13
13
  %td&= <%= sco_underscored %>
14
14
  <%- if actions.include?('show') -%>
@@ -19,4 +19,8 @@
19
19
  <%- end -%>
20
20
  <%- if actions.include?('destroy') -%>
21
21
  %td= link_to_button 'Delete', admin_<%= sco_underscored %>_path(<%= sco_underscored %>), :method => 'delete', :confirm => "Are you sure you want to delete the <%= sco_humanized %>: #{h(<%= sco_underscored %>)}?"
22
+ <%- end -%>
23
+ <%- if actions.include?('sort') -%>
24
+
25
+ = sortable_element('<%= sco_underscored_plural %>', :items => 'tr.dragable', :url => sort_admin_<%= sco_underscored_plural %>_path)
22
26
  <%- end -%>
data/schofield.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{schofield}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marc Tauber"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marc Tauber