relation_scope 1.0.0 → 1.0.1
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.
- data/CHANGELOG +5 -2
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/relation_scope.rb +1 -1
- data/lib/tasks/{relation_scope_tasks.rake → relation_scope.rake} +0 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
-
|
1
|
+
1.0.0
|
2
2
|
This plugin just for rails version 2.3.x with named scope module.
|
3
|
-
Include name
|
3
|
+
Include name scoped methods: where, joins, includes, select, order, limit, offset, group, having
|
4
|
+
|
5
|
+
1.0.1
|
6
|
+
rename named scope method #select to #selects, do not conflict Array#select method
|
data/README.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
== RelationScope
|
2
2
|
|
3
3
|
This plugin just for rails version 2.3.x with named scope module.
|
4
|
-
Include name scope methods: where, joins, includes,
|
4
|
+
Include name scope methods: where, joins, includes, selects, order, limit, offset, group, having
|
5
5
|
|
6
6
|
|
7
7
|
== Usage
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/relation_scope.rb
CHANGED
@@ -9,7 +9,7 @@ module RelationScope
|
|
9
9
|
}
|
10
10
|
named_scope :joins, lambda { |joins| { :joins => joins } }
|
11
11
|
named_scope :includes, lambda { |includes| { :include => includes } }
|
12
|
-
named_scope :
|
12
|
+
named_scope :selects, lambda { |select| { :select => select } }
|
13
13
|
named_scope :order, lambda { |order| { :order => order } }
|
14
14
|
named_scope :limit, lambda { |limit| { :limit => limit } }
|
15
15
|
named_scope :offset, lambda { |offset| { :offset => offset } }
|
File without changes
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: relation_scope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- LiangWenKe
|
@@ -24,7 +24,7 @@ extra_rdoc_files: []
|
|
24
24
|
|
25
25
|
files:
|
26
26
|
- lib/relation_scope.rb
|
27
|
-
- lib/tasks/
|
27
|
+
- lib/tasks/relation_scope.rake
|
28
28
|
- CHANGELOG
|
29
29
|
- MIT-LICENSE
|
30
30
|
- Rakefile
|