Merge branch 'master' into 1776-setup-user-email
[arvados.git] / services / api / app / controllers / application_controller.rb
index 06e1838411b4a4d4171bf2884f323d61a9737ebf..227a488774ae83f8e6d5ed0c0361b69cfe3463a3 100644 (file)
@@ -1,5 +1,6 @@
 class ApplicationController < ActionController::Base
   include CurrentApiClient
+  include ThemesForRails::ActionController
 
   respond_to :json
   protect_from_forgery
@@ -20,6 +21,8 @@ class ApplicationController < ActionController::Base
                                                    :render_error,
                                                    :render_not_found]
 
+  theme :select_theme
+
   attr_accessor :resource_attrs
 
   def index
@@ -477,4 +480,8 @@ class ApplicationController < ActionController::Base
     end
     super *opts
   end
+
+  def select_theme
+    return Rails.configuration.arvados_theme
+  end
 end