acts_as_acts_as 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/acts_as_acts_as/acts_as_shortcuts.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ActsAsActsAs
|
2
2
|
module ActsAsShortcuts
|
3
|
-
def require_methods(*method_list
|
3
|
+
def require_methods(*method_list)
|
4
4
|
method_list.each do |required_method|
|
5
5
|
unless instance_methods.include?(required_method.to_s)
|
6
6
|
raise "Model #{self.to_s} must define #{required_method}"
|
@@ -8,7 +8,7 @@ module ActsAsActsAs
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def require_class_methods(*method_list
|
11
|
+
def require_class_methods(*method_list)
|
12
12
|
method_list.each do |required_method|
|
13
13
|
unless methods.include?(required_method.to_s)
|
14
14
|
raise "Model #{self.to_s} must define class method #{required_method}"
|