Exception: MissingPolymorphicTypeError
- Inherits:
-
MakeEntryError
- Object
- RuntimeError
- JoinFixError
- MakeEntryError
- MissingPolymorphicTypeError
- Defined in:
- lib/joinfix/error.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from MakeEntryError
Attributes inherited from JoinFixError
Instance Method Summary collapse
Methods inherited from MakeEntryError
Methods inherited from JoinFixError
Constructor Details
This class inherits a constructor from MakeEntryError
Instance Method Details
#advice ⇒ Object
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 |