Sha256: ff043e3aa7c3441e558b00658964c277a44edf2be70041a41ed7be8e90691e59

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

module AdaptiveAlias
  module Hooks
    module Association
      def find_target(*)
        AdaptiveAlias.rescue_statement_invalid(nil){ super }
      end
    end
  end
end

class ActiveRecord::Associations::Association
  prepend AdaptiveAlias::Hooks::Association
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adaptive_alias-0.0.2 lib/adaptive_alias/hooks/association.rb