Module: GuardRail::HelperMethods
- Defined in:
- lib/guard_rail/helper_methods.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 |
# 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 |