method
new
rails latest stable - Class:
Person
new(attributes = {})public
No documentation available.
# File activemodel/examples/validations.rb, line 12
def initialize(attributes = {})
@name = attributes[:name]
end new(attributes = {})No documentation available.
# File activemodel/examples/validations.rb, line 12
def initialize(attributes = {})
@name = attributes[:name]
end