Class: Mongoid::Orderable::Generators::Listable

Inherits:
Base
  • Object
show all
Defined in:
lib/mongoid/orderable/generators/listable.rb

Instance Attribute Summary

Attributes inherited from Base

#klass

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mongoid::Orderable::Generators::Base

Instance Method Details

#generate(field_name) ⇒ Object



7
8
9
10
# File 'lib/mongoid/orderable/generators/listable.rb', line 7

def generate(field_name)
  generate_list_helpers(field_name)
  generate_aliased_helpers(field_name)
end