Class: YardSequel::Associations::ManyToOneHandler

Inherits:
AssociationHandler
  • Object
show all
Includes:
DatasetMethod, ToOneMethods
Defined in:
lib/yard-sequel/associations/many_to_one_handler.rb

Overview

The handler class for Sequel many_to_one associations.

Author:

  • Kai Moschcau

Instance Method Summary collapse

Methods included from ToOneMethods

#create_to_one_getter, #create_to_one_setter

Methods included from DatasetMethod

#create_dataset_method

Methods inherited from AssociationHandler

#add_param_tag, #association_class, #association_class_namespace, #association_full_class, #association_name, #association_options, #create_method_object, #return_tag, #void_return_tag

Instance Method Details

#processObject


13
14
15
16
17
18
19
20
21
# File 'lib/yard-sequel/associations/many_to_one_handler.rb', line 13

def process
  super
  original_group = extra_state.group
  extra_state.group = "Many to one #{association_name} association"
  create_to_one_getter
  create_to_one_setter
  create_dataset_method
  extra_state.group = original_group
end