app/models/c80_push/region.rb in c80_push-0.1.0 vs app/models/c80_push/region.rb in c80_push-0.1.0.1

- old
+ new

@@ -1,10 +1,10 @@ module C80Push class Region < ActiveRecord::Base has_and_belongs_to_many :dealers has_and_belongs_to_many :offices - scope :def_order, -> { order(:ord => :asc) } + default_scope -> { order(:ord => :asc) } validates :title, :uniqueness => true, :presence => true, :length => { in: 2..90 } \ No newline at end of file