Suppose I have this
module Command
extend ActiveSupport::Concern
included do
@path ||= File.join("#{file_path}", "some_file")
end
def file_path
File.expand_path("some_other_file")
end
...
When the module is included, I get undefined local variable or method file_path. So is there a way, to make the file_path method be recognized when the module is included ? (of course without putting file_path in the included method)
Module#includeddidn't take block.. Where you found the code ?