Sha256: 74a02d003c3fa09bd064db81ffc137f773d003bdbb7d68d753c755fb17155bd8

Contents?: true

Size: 541 Bytes

Versions: 29

Compression:

Stored size: 541 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 model < ::PaperTrail::Model::InstanceMethods
          actions << :deleted_records
        end

        def self.included(base)
          base.alias_method_chain :initialize, :paper_trail
        end
      end
    end
  end
end
ActiveScaffold::Config::Core.send :include, ActiveScaffold::Bridges::PaperTrail::PaperTrailBridge

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
active_scaffold-3.4.43 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.42 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.41.1 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.41 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.40 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.39 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.38 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.37 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.36 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.35 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.34 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.33 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.32 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.31 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.30 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.29 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.28 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.27 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.26 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.25 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb