Exception: MissingFacet

Inherits:
ApplicationError show all
Defined in:
lib/generators/propel_facets/templates/errors/missing_facet.rb

Overview

Error thrown when a facet cannot be found

This is only thrown when you pass { missing: :error } as part of as_json options.

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Facet not found to render JSON') ⇒ MissingFacet

Returns a new instance of MissingFacet.



10
11
12
# File 'lib/generators/propel_facets/templates/errors/missing_facet.rb', line 10

def initialize(msg = 'Facet not found to render JSON')
  super
end