Sha256: 096c6e61e2647045110e953f1340c1b945622d8388bc024754b51888e352b926
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
<%- unless omit_comments? -%> # ApplicationResource is similar to ApplicationRecord - a base class that # holds configuration/methods for subclasses. # All Resources should inherit from ApplicationResource. # Resource documentation: https://jsonapi-suite.github.io/jsonapi_compliable/JsonapiCompliable/Resource.html <%- end -%> class ApplicationResource < JsonapiCompliable::Resource <%- unless omit_comments? -%> # Use the ActiveRecord Adapter for all subclasses. # Subclasses can still override this default. # More on adapters: https://jsonapi-suite.github.io/jsonapi_compliable/JsonapiCompliable/Adapters/Abstract.html <%- end -%> self.abstract_class = true self.adapter = JsonapiCompliable::Adapters::ActiveRecord::Base.new end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonapi_compliable-1.0.alpha.2 | lib/generators/jsonapi/templates/application_resource.rb.erb |