wnm_support 0.0.6 → 0.0.7
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/README.md
CHANGED
@@ -61,7 +61,7 @@ And then execute:
|
|
61
61
|
news[2] # news record with id = 1
|
62
62
|
|
63
63
|
# multi actions
|
64
|
-
News.multi # => [
|
64
|
+
News.multi # => [] # every model has this method, you can define there multi action on more models
|
65
65
|
|
66
66
|
# destroy validation
|
67
67
|
item = News.create!(:name => "new item")
|
data/changelog.md
CHANGED
data/lib/wnm_support/version.rb
CHANGED
@@ -11,7 +11,7 @@ describe WnmSupport::ActiveRecordExt::MultiAction do
|
|
11
11
|
Item.should respond_to :multi
|
12
12
|
end
|
13
13
|
|
14
|
-
it "should
|
15
|
-
Item.multi.should eq
|
14
|
+
it "should return empty array by default" do
|
15
|
+
Item.multi.should eq([])
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wnm_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
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:
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|