Class: Mongoid::Orderable::Generators::Movable

Inherits:
Base
  • Object
show all
Defined in:
lib/mongoid/orderable/generators/movable.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
11
# File 'lib/mongoid/orderable/generators/movable.rb', line 7

def generate(field_name)
  generate_move_to_helpers(field_name)
  generate_insert_at_helpers(field_name)
  generate_shorthand_helpers(field_name)
end