app/models/effective/log.rb in effective_logging-3.0.3 vs app/models/effective/log.rb in effective_logging-3.0.4

- old
+ new

@@ -9,13 +9,12 @@ # Self-Referencing relationship belongs_to :parent, class_name: 'Effective::Log', counter_cache: true, optional: true has_many :logs, class_name: 'Effective::Log', foreign_key: :parent_id - belongs_to :user - + belongs_to :user, optional: true belongs_to :changes_to, polymorphic: true, optional: true # This is the log_changes to: option - belongs_to :associated, polymorphic: true + belongs_to :associated, polymorphic: true, optional: true serialize :details, Hash # Attributes # logs_count :integer # Rails Counter Cache