blob: 947cdaefcb7816c7d41c3eca38a002565585ebb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module ClusterApp
extend ActiveSupport::Concern
included do
def find_app(app_name, id)
Clusters::Cluster::APPLICATIONS[app_name].find(id).try do |app|
yield(app) if block_given?
end
end
end
end
|