test/dummy/app/models/admin/city.rb in carnival-0.0.11 vs test/dummy/app/models/admin/city.rb in carnival-0.0.26
- old
+ new
@@ -1,7 +1,7 @@
module Admin
class City < ActiveRecord::Base
- include AssociationCommon
+ include Carnival::ModelHelper
self.table_name = "cities"
belongs_to :country
belongs_to :state
scope :national, -> {includes(:country).where("countries.code = ?", "BR")}