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 # => [:destroy] # every model has this method
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
@@ -1,3 +1,7 @@
1
+ # 0.0.7
2
+ ## changed
3
+ * multi action in ActiveRecord::base now return empty array
4
+
1
5
  # 0.0.6
2
6
  ## removed
3
7
  * view helper LinkToAddFields, because of not easy testing
@@ -5,9 +5,9 @@ module WnmSupport
5
5
 
6
6
  module ClassMethods
7
7
  def multi
8
- [:destroy]
8
+ []
9
9
  end
10
10
  end
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module WnmSupport
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -11,7 +11,7 @@ describe WnmSupport::ActiveRecordExt::MultiAction do
11
11
  Item.should respond_to :multi
12
12
  end
13
13
 
14
- it "should have default [:destroy]" do
15
- Item.multi.should eq [:destroy]
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.6
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: 2012-10-19 00:00:00.000000000 Z
12
+ date: 2013-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport