jquery_rails_sortable 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,4 +15,11 @@ module SortableHelper
15
15
  :class => "move",
16
16
  :onclick => "return false;"
17
17
  end
18
+
19
+ def sortable_css_classes(object)
20
+ classes = []
21
+ classes << 'sortable-first' if object.first?
22
+ classes << 'sortable-last' if object.last?
23
+ classes.join(' ')
24
+ end
18
25
  end
@@ -1,3 +1,3 @@
1
1
  module JqueryRailsSortable
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery_rails_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-25 00:00:00.000000000 Z
12
+ date: 2013-07-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: JQuery Rails Sortable
15
15
  email: