Remove root_name class method from Serializer, as it is used nowhere.

This commit is contained in:
Lucas Hosseini
2015-10-05 03:08:07 +02:00
parent 066990184b
commit 7847d05ecb
2 changed files with 1 additions and 4 deletions

View File

@@ -98,10 +98,6 @@ module ActiveModel
ActiveModel::Serializer::Adapter.lookup(config.adapter)
end
def self.root_name
name.demodulize.underscore.sub(/_serializer$/, '') if name
end
def self.serializers_cache
@serializers_cache ||= ThreadSafe::Cache.new
end