mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Always allow params to be skipped on action orm in generators.
This commit is contained in:
@@ -39,7 +39,7 @@ module Rails
|
||||
# GET edit
|
||||
# PUT update
|
||||
# DELETE destroy
|
||||
def self.find(klass, params)
|
||||
def self.find(klass, params=nil)
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ module ActiveRecord
|
||||
"#{klass}.all"
|
||||
end
|
||||
|
||||
def self.find(klass, params)
|
||||
def self.find(klass, params=nil)
|
||||
"#{klass}.find(#{params})"
|
||||
end
|
||||
|
||||
@@ -41,7 +41,7 @@ module ActiveRecord
|
||||
"#{name}.save"
|
||||
end
|
||||
|
||||
def update_attributes(params)
|
||||
def update_attributes(params=nil)
|
||||
"#{name}.update_attributes(#{params})"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user