summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 21:03:56 -0700
committermo khan <mo@mokhan.ca>2014-02-21 21:03:56 -0700
commit4f6de445141fc5542f61a1830c29ad61ecbeb49b (patch)
treed769b60454e95cdf63ff741dff4375bfb3a80d3e /app/controllers/application_controller.rb
parentf6eebdeb6aa56c4734102caf1817479d9e7b2765 (diff)
load well statuses and well types in application controller.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index d83690e..658a065 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,5 +1,11 @@
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
- protect_from_forgery with: :exception
+ protect_from_forgery with: :null_session
+ before_filter :load_additional_payload_data
+
+ def load_additional_payload_data
+ @license_statuses = LicenseStatus::ALL
+ @well_types = WellType::ALL
+ end
end