kentouzu 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/kentouzu/has_drafts.rb +2 -2
- data/lib/kentouzu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa85713258a206beb46ed4132dc5a226c7d99565
|
4
|
+
data.tar.gz: 828bdaf162a632ae6a42e6b0e81dc1632dd318ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69c54b8e8cf754e94e50af1243d242279af7b602e4d27da6d6a9a8f707210f256c44a372d12bfb0da58824da37d4c1f8fd9a3abb00633b7a94a1e370e6115eef
|
7
|
+
data.tar.gz: 4c5b4be34ecec674ea639dab6b44c166ed0adec813f70b299d4bf753f9be940ab6046e274c0a5ad40a67bba3c37966d9cfb8e7f3200595e143133de924c097a3
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/kentouzu/has_drafts.rb
CHANGED
@@ -137,7 +137,7 @@ module Kentouzu
|
|
137
137
|
def self.included(base)
|
138
138
|
default_save = base.instance_method(:save)
|
139
139
|
|
140
|
-
base.send :define_method, :save do
|
140
|
+
base.send :define_method, :save do |*|
|
141
141
|
if switched_on? && save_draft?
|
142
142
|
save_draft
|
143
143
|
else
|
@@ -147,7 +147,7 @@ module Kentouzu
|
|
147
147
|
|
148
148
|
default_save_with_bang = base.instance_method(:save!)
|
149
149
|
|
150
|
-
base.send :define_method, :save! do
|
150
|
+
base.send :define_method, :save! do |*|
|
151
151
|
if switched_on? && save_draft?
|
152
152
|
save_draft
|
153
153
|
else
|
data/lib/kentouzu/version.rb
CHANGED