Hi, Is there an alternative to calling a Module method from a nested
class? The code:
module GroupSweeper
def expire_cache(paths)
paths.each do |path|
expire_page(path)
end
end
class SweeperOne < ActionController::Caching::Sweeper
include GroupSweeper
observe Subject
def after_save(subject)
expire_cache([root_path,subjects_path])
end
def after_destroy(subject)
expire_cache([root_path,subjects_path])
end
end
end
How can I call GroupSweeper’s expire_cache method from within
SweeperOne without explicitely including it? Should I not be doing
this?