Sha256: bcf198192889f58b62678d76bc2c390fbd46843cad9c43b046ae12a0446411b5

Contents?: true

Size: 477 Bytes

Versions: 23

Compression:

Stored size: 477 Bytes

Contents

# see http://dev.rubyonrails.org/ticket/5935
module Aquatic; end
require 'aquatic/fish'
require 'aquatic/pupils_whale'

class Aquatic::Whale < ActiveRecord::Base
  # set_table_name "whales"
  
  has_many_polymorphs(:aquatic_pupils, :from => [:dogs, :"aquatic/fish"],
                      :through => "aquatic/pupils_whales") do
                        def a_method
                          :correct_block_result 
                        end
                      end    
end

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
spree-0.6.0 vendor/plugins/has_many_polymorphs/test/models/aquatic/whale.rb
spree-0.7.1 vendor/plugins/has_many_polymorphs/test/models/aquatic/whale.rb
spree-0.7.0 vendor/plugins/has_many_polymorphs/test/models/aquatic/whale.rb