Method: Rails::Generators::ActiveModel.find

Defined in:
railties/lib/rails/generators/active_model.rb

.find(klass, params = nil) ⇒ Object

GET show GET edit PATCH/PUT update DELETE destroy



44
45
46
# File 'railties/lib/rails/generators/active_model.rb', line 44

def self.find(klass, params = nil)
  "#{klass}.find(#{params})"
end