module GuardRail::HelperMethods

Public Class Methods

included(base) click to toggle source
# File lib/guard_rail/helper_methods.rb, line 5
def self.included(base)
  base.singleton_class.include(ClassMethods)
  # call guard_rail_class_method on the class itself, which then calls guard_rail_method on the singleton_class
  base.singleton_class.singleton_class.include(ClassMethods)
end