app/models/province.rb in china_regions-1.0.4 vs app/models/province.rb in china_regions-1.0.5

- old
+ new

@@ -8,6 +8,9 @@ } # Relationships has_many :cities, dependent: :destroy has_many :districts, through: :cities + + # Filter by name + scope :filter, ->(fname) { where(["name_en = :name or name = :name", name: fname]) } end