app/controllers/umlaut/controller_behavior.rb in umlaut-3.0.0alpha2 vs app/controllers/umlaut/controller_behavior.rb in umlaut-3.0.0alpha3

- old
+ new

@@ -14,7 +14,22 @@ # init default configuration values UmlautConfigurable.set_default_configuration!(controller.umlaut_config) end + protected + + # Returns a Collection object with currently configured services. + # Loads from Rails.root/config/umlaut_services.yml + # + # Local app can in theory override in local UmlautController to have + # different custom behavior for calculating the collection, but this + # is not entirely tested yet. + def create_collection + # trim out ones with disabled:true + services = ServiceStore.config["default"]["services"].reject {|id, hash| hash && hash["disabled"] == true} + + return Collection.new(@user_request, services) + end + end