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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -