Sha256: 8251bb36c2827d98367bacf1acc822d838b8e344d96763dc1615d9a3bf4a5e89

Contents?: true

Size: 300 Bytes

Versions: 6

Compression:

Stored size: 300 Bytes

Contents

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adaptive_alias-1.3.0 lib/adaptive_alias/hooks/association.rb
adaptive_alias-1.2.1 lib/adaptive_alias/hooks/association.rb
adaptive_alias-1.2.0 lib/adaptive_alias/hooks/association.rb
adaptive_alias-1.1.2 lib/adaptive_alias/hooks/association.rb
adaptive_alias-1.1.1 lib/adaptive_alias/hooks/association.rb
adaptive_alias-1.1.0 lib/adaptive_alias/hooks/association.rb