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

Version Path
active_scaffold-3.4.17 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.16 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.14 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.13 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.12 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.11 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.10 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.9 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.8 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb
active_scaffold-3.4.7 lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb