app/models/unidom/common/concerns/model_extension.rb in unidom-common-1.1 vs app/models/unidom/common/concerns/model_extension.rb in unidom-common-1.2

- old
+ new

@@ -4,10 +4,10 @@ module ModelExtension extend ActiveSupport::Concern - self.included do |includer| + included do |includer| validates :state, presence: true, length: { is: columns_hash['state'].limit } scope :included_by, ->(inclusion) { where id: inclusion } scope :excluded_by, ->(exclusion) { where.not id: exclusion } \ No newline at end of file