Exception: MissingPolymorphicTypeError

Inherits:
MakeEntryError show all
Defined in:
lib/joinfix/error.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from MakeEntryError

#entry

Attributes inherited from JoinFixError

#entry_name, #fixtures, #msg

Instance Method Summary collapse

Methods inherited from MakeEntryError

#initialize, #message

Methods inherited from JoinFixError

#initialize, new

Constructor Details

This class inherits a constructor from MakeEntryError

Instance Method Details

#adviceObject



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/joinfix/error.rb', line 99

def advice
	%Q{
When specifying a belongs_to :polymorphic join, the type
of the joined entry must be specified because it cannot be
inferred from association itself.  Use something like:
--
book_I_read:
 opinion: Great!
 readable_type: Book
 readable:
   the_jungle_books:
     author: Rudyard Kipling
     title: The Jungle Books

poem_I_read:
 opinion: Essential!
 readable_type: Poem
 readable:
   sea_fever:
     poet: John Masefield 
     title: Sea-Fever}
end