module PragmaticSerializer::Prefixes::ClassMethods
Public Instance Methods
collection_prefix()
click to toggle source
# File lib/pragmatic_serializer/prefixes.rb, line 4 def collection_prefix name.demodulize.underscore.gsub('_serializer', '').pluralize.to_sym end
resource_prefix()
click to toggle source
# File lib/pragmatic_serializer/prefixes.rb, line 8 def resource_prefix name.demodulize.underscore.gsub('_serializer', '').singularize.to_sym end