mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-25 15:42:57 +00:00
Uses model_name as an instance method
This commit is contained in:
@@ -92,8 +92,8 @@ module Schemable
|
||||
self.class.name.gsub('Swagger::Definitions::', '').constantize
|
||||
end
|
||||
|
||||
def self.model_name
|
||||
name.gsub('Swagger::Definitions::', '').pluralize.underscore.downcase
|
||||
def model_name
|
||||
self.class.name.gsub('Swagger::Definitions::', '').pluralize.underscore.downcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user