module FormatRestricterRails::Includes

Create a wrapping module so we can expose class methods into the host controllers.

Public Class Methods

included(base) click to toggle source
# File lib/format_restricter_rails/includes.rb, line 4
def self.included(base)
  base.extend(ClassMethods)
  # This is one way to mark the register_before_action method as private in a module.
  base.instance_eval { private_class_method :register_before_action }
end