2018-11-08 19:23:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module ClusterApplications
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
included do
|
|
|
|
def find_application(app_name, id, &blk)
|
|
|
|
Clusters::Cluster::APPLICATIONS[app_name].find(id).try(&blk)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|