Class: Geography::City
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Geography::City
- Defined in:
- app/models/geography/city.rb
Instance Method Summary collapse
-
#state_name ⇒ Object
validations .….….….….….….….….….….….….….….……
Instance Method Details
#state_name ⇒ Object
validations .….….….….….….….….….….….….….….…… callbacks .….….….….….….….….….….….….….….….…. scopes .….….….….….….….….….….….….….….….….… additional config .….….….….….….….….….….….….….…. class methods .….….….….….….….….….….….….….….….
13 14 15 |
# File 'app/models/geography/city.rb', line 13 def state_name self.state.name if self.state end |