class Rails::Generators::ActiveModel

def update(params = nil)

PATCH/PUT update
def update(params = nil)
  "#{name}.update(#{params})"
end