ruby on rails - How can I add mutiple included blocks in a concern? -
everything illustrated follows:
# below common lib definition. module somelib extend activesupport::concern included puts 'executing predefined block lib' end end # want expand lib through logic module somelib # errors: activesupport::concern::multipleincludedblocks included puts 'executing actions defined me' end end then how define included block when there has defined 1 in module?
Comments
Post a Comment