Class: District

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/district.rb

Instance Method Summary collapse

Instance Method Details

#short_nameObject



5
6
7
# File 'app/models/district.rb', line 5

def short_name
  @short_name ||= name.sub(/区|县|市$/,'')
end