Sha256: fff5a0145ecb87102c51fafe6ff636796b6ed469ed59e73f8516c6fbbc15a3ba
Contents?: true
Size: 461 Bytes
Versions: 10
Compression:
Stored size: 461 Bytes
Contents
module ActiveScaffold module Bridges class PaperTrail module PaperTrailBridge def initialize_with_paper_trail(model_id) initialize_without_paper_trail(model_id) return unless self.model < ::PaperTrail::Model::InstanceMethods self.actions << :deleted_records end def self.included(base) base.alias_method_chain :initialize, :paper_trail end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems