Sha256: 1ee776e856d6b476c4e4dc2a0b0ee093f63ba8b90242e808681d184d04e37041

Contents?: true

Size: 254 Bytes

Versions: 6

Compression:

Stored size: 254 Bytes

Contents

class SampleController < ApplicationController

  disclaimer_name = Disclaimer::Document.first.name if Disclaimer::Document.first
  
  disclaimer disclaimer_name, :only => [:index]

  def index
  end

  def bypass_disclaimer
    render :index
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
disclaimer-0.1.1 test/dummy/app/controllers/sample_controller.rb
disclaimer-0.1.0 test/dummy/app/controllers/sample_controller.rb
disclaimer-0.0.7 test/dummy/app/controllers/sample_controller.rb
disclaimer-0.0.6 test/dummy/app/controllers/sample_controller.rb
disclaimer-0.0.5 test/dummy/app/controllers/sample_controller.rb
disclaimer-0.0.4 test/dummy/app/controllers/sample_controller.rb