mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
Fixes typo in singularize method invocation
This commit is contained in:
parent
51a83ed0d3
commit
85101038d9
@ -12,7 +12,7 @@ module Schemable
|
|||||||
end
|
end
|
||||||
|
|
||||||
def copy_initializer
|
def copy_initializer
|
||||||
target_path = "lib/swagger/definitions/#{@model_name.underscore.downcase.singlurize}.rb"
|
target_path = "lib/swagger/definitions/#{@model_name.underscore.downcase.singularize}.rb"
|
||||||
|
|
||||||
if Rails.root.join(target_path).exist?
|
if Rails.root.join(target_path).exist?
|
||||||
say_status('skipped', 'Model definition already exists')
|
say_status('skipped', 'Model definition already exists')
|
||||||
@ -29,7 +29,7 @@ module Swagger
|
|||||||
attr_accessor :instance
|
attr_accessor :instance
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@instance ||= JSONAPI::Serializable::Renderer.new.render(FactoryBot.create(:#{@model_name.underscore.downcase.singlurize}), class: serializers_map, include: [])
|
@instance ||= JSONAPI::Serializable::Renderer.new.render(FactoryBot.create(:#{@model_name.underscore.downcase.singularize}), class: serializers_map, include: [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def serializer
|
def serializer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user