I have an application where the same transitions are to be enabled on multiple subsites. Rather than duplicating the transition code, it would be better to pass multiple subsites to the :subsite directive.
Existing code in hobo/model/lifecycles/actions.rb
def routable_for?(subsite)
publishable? && options[:subsite] == subsite
end
I have an application where the same transitions are to be enabled on multiple subsites. Rather than duplicating the transition code, it would be better to pass multiple subsites to the :subsite directive.
Existing code in hobo/model/lifecycles/actions.rb
Suggested (untested) improvement: