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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -