test/dummy/app/controllers/sample_controller.rb in disclaimer-0.0.3 vs test/dummy/app/controllers/sample_controller.rb in disclaimer-0.0.4
- old
+ new
@@ -1,7 +1,9 @@
class SampleController < ApplicationController
- disclaimer Disclaimer::Document.first.name.to_sym, :only => [:index]
+ disclaimer_name = Disclaimer::Document.first.name if Disclaimer::Document.first
+
+ disclaimer disclaimer_name, :only => [:index]
def index
end
def bypass_disclaimer