lib/synchronisable/models/import.rb in synchronisable-1.3.0 vs lib/synchronisable/models/import.rb in synchronisable-1.3.1

- old
+ new

@@ -1,8 +1,12 @@ module Synchronisable class Import < ActiveRecord::Base belongs_to :synchronisable, polymorphic: true + if Gem.loaded_specs['activerecord'].version < Gem::Version.create(4) + attr_accessible :synchronisable_id, :synchronisable_type, :remote_id, :unique_id, :attrs + end + serialize :attrs, Hash scope :with_synchronisable_type, ->(type) { where(synchronisable_type: type) } scope :with_synchronisable_ids, ->(ids) { where(synchronisable_id: ids) }