RubyGems
npm
Organizations
Log in
Sign up
RubyGems
order_me
Versions diffs
0.0.1 → 0.0.2
order_me 0.0.1 → 0.0.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/order_me.rb
+1
-1
metadata
+1
-1
data/lib/order_me.rb
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
class ActiveRecord::Base
2
2
class << self
3
-
self.
attributes.each do |attr, val|
3
+
attributes.each do |attr, val|
4
4
define_method "order_me_by_#{attr}" do
5
5
order("#{attr} DESC")
6
6
end
metadata
CHANGED
Viewed
@@ -2,7 +2,7 @@
2
2
name: order_me
3
3
version: !ruby/object:Gem::Version
4
4
prerelease:
5
-
version: 0.0.
1
5
+
version: 0.0.
2
6
6
platform: ruby
7
7
authors:
8
8
- choodur