gollum_rails 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/HISTORY.md +3 -0
- data/gollum_rails.gemspec +1 -1
- data/lib/gollum_rails.rb +1 -1
- data/lib/gollum_rails/page.rb +4 -17
- 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: 9efbb648b9aa7ad7dffc2e02d8af20698ece92d9
|
4
|
+
data.tar.gz: 0822fe4e135626b88d25078ecbc02fb06207db20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360e9669919ae31dfec11a9ad5ab7a902f20983b2e2de2448681b68130b467ee3a0b4c5467146a437441c0bdc8c48ec0436b6584eb9e2b2c8696d4d7fc7498b0
|
7
|
+
data.tar.gz: bca20d67aacf28cefd0e5217f9546d6c80199d0b0b2fa1eace6fae7a07a4d03d6d2c00fe627bfc415ed27fcfefe2f59d7adc01da79cdb17732bbb68c07bd76b8
|
data/Gemfile.lock
CHANGED
data/HISTORY.md
CHANGED
data/gollum_rails.gemspec
CHANGED
data/lib/gollum_rails.rb
CHANGED
data/lib/gollum_rails/page.rb
CHANGED
@@ -16,26 +16,13 @@ module GollumRails
|
|
16
16
|
#
|
17
17
|
class Page
|
18
18
|
extend ActiveModel::Naming
|
19
|
+
extend ActiveModel::Callbacks
|
20
|
+
|
19
21
|
include ActiveModel::Conversion
|
20
22
|
include ActiveModel::Validations
|
21
23
|
|
22
|
-
|
23
|
-
define_model_callbacks :save
|
24
|
-
|
25
|
-
# Callback for update
|
26
|
-
define_model_callbacks :update
|
27
|
-
|
28
|
-
# Callback for delete
|
29
|
-
define_model_callbacks :delete
|
30
|
-
|
31
|
-
# Callback for initialize
|
32
|
-
define_model_callbacks :initialize
|
33
|
-
|
34
|
-
# Callback for create
|
35
|
-
define_model_callbacks :create
|
24
|
+
define_model_callbacks :save, :update, :delete, :initialize, :create, :commit
|
36
25
|
|
37
|
-
# Callback for commit
|
38
|
-
define_model_callbacks :commit
|
39
26
|
|
40
27
|
# static
|
41
28
|
class << self
|
@@ -120,7 +107,7 @@ module GollumRails
|
|
120
107
|
if name =~ /^find_by_(name)$/
|
121
108
|
self.find(args.first)
|
122
109
|
else
|
123
|
-
raise NoMethodError, "
|
110
|
+
raise NoMethodError, "undefined method `#{name}` for #{self}:#{self.class}"
|
124
111
|
end
|
125
112
|
end
|
126
113
|
|