module Roar::Contrib::Decorator::CollectionRepresenter::ClassMethods
Public Instance Methods
represented_collection_name()
click to toggle source
# File lib/roar/contrib/decorator/collection_representer.rb, line 15 def represented_collection_name name.demodulize.chomp('Representer').underscore.pluralize end
resource_representer()
click to toggle source
# File lib/roar/contrib/decorator/collection_representer.rb, line 11 def resource_representer (name.chomp('Representer').singularize << 'Representer').constantize end