Class: Geography::City

Inherits:
ApplicationRecord show all
Defined in:
app/models/geography/city.rb

Instance Method Summary collapse

Instance Method Details

#state_nameObject

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