Exception: ForeignKeySetError

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

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from ResolveJoinReferenceError

#join_name, #join_table_name

Attributes inherited from JoinFixError

#entry_name, #fixtures, #msg

Instance Method Summary collapse

Methods inherited from ResolveJoinReferenceError

#initialize, #message

Methods inherited from JoinFixError

#initialize, new

Constructor Details

This class inherits a constructor from ResolveJoinReferenceError

Instance Method Details

#adviceObject



142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/joinfix/error.rb', line 142

def advice
	%Q{
This error occurs when you specifiy the foreign key, as well as a join entry.  
---
poem:
 title: Poetry of Departures
 author_id: 8
 author: larkin

If you need to specify the foreign key, do so within the entry.
---
poem:
 title: Poetry of Departures
 author: 
   larkin:
     id: 8}
end