mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #15261 from hbin/missing_parameters
Bring the missing parameters back.
This commit is contained in:
commit
a6f55fe257
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
private
|
||||
def method_body; raise NotImplementedError; end
|
||||
|
||||
# Override this method in the subclasses for method body.
|
||||
def method_body(method_name, const_name)
|
||||
raise NotImplementedError, "Subclasses must implement a method_body(method_name, const_name) method."
|
||||
end
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
|
|
Loading…
Reference in a new issue