mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused internal methods in ActiveModel::Attributes
This commit is contained in:
parent
b439b78705
commit
13bd289b44
1 changed files with 0 additions and 14 deletions
|
@ -120,25 +120,11 @@ module ActiveModel
|
|||
end
|
||||
|
||||
private
|
||||
def write_attribute(attr_name, value)
|
||||
name = attr_name.to_s
|
||||
name = self.class.attribute_aliases[name] || name
|
||||
|
||||
@attributes.write_from_user(name, value)
|
||||
end
|
||||
|
||||
def _write_attribute(attr_name, value)
|
||||
@attributes.write_from_user(attr_name, value)
|
||||
end
|
||||
alias :attribute= :_write_attribute
|
||||
|
||||
def read_attribute(attr_name)
|
||||
name = attr_name.to_s
|
||||
name = self.class.attribute_aliases[name] || name
|
||||
|
||||
@attributes.fetch_value(name)
|
||||
end
|
||||
|
||||
def attribute(attr_name)
|
||||
@attributes.fetch_value(attr_name)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue