Module: ViewComponent::PolymorphicSlots
- Defined in:
- lib/view_component/polymorphic_slots.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
In older rails versions, using a concern isn’t a good idea here because they appear to not work with Module#prepend and class methods.
Class Method Details
.included(base) ⇒ Object
In older rails versions, using a concern isn’t a good idea here because they appear to not work with Module#prepend and class methods.
7 8 9 10 |
# File 'lib/view_component/polymorphic_slots.rb', line 7 def self.included(base) base.singleton_class.prepend(ClassMethods) base.include(InstanceMethods) end |