Exception: Graphiti::Errors::PublicIdLeak
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, attribute_name, source_resource_class) ⇒ PublicIdLeak
constructor
A new instance of PublicIdLeak.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, attribute_name, source_resource_class) ⇒ PublicIdLeak
Returns a new instance of PublicIdLeak.
768 769 770 771 772 |
# File 'lib/graphiti/errors.rb', line 768 def initialize(resource_class, attribute_name, source_resource_class) @resource_class = resource_class @attribute_name = attribute_name @source_resource_class = source_resource_class end |
Instance Method Details
#message ⇒ Object
774 775 776 |
# File 'lib/graphiti/errors.rb', line 774 def "#{@resource_class.name}: attribute #{@attribute_name.inspect} is readable, but it holds the primary key #{@source_resource_class.name} hides behind its public id. Declare it `only: [:filterable]` or drop it." end |