Sha256: 6855881b6ca1d6628884b229c676fc037ff34c4010e1a36d8178ad0670c4fb94

Contents?: true

Size: 428 Bytes

Versions: 17

Compression:

Stored size: 428 Bytes

Contents

module PriviledgeProtection

  extend ActiveSupport::Concern

  included do |includer|

    # include VisitorSession

    before_action :protect_priviledge!

    def protect_priviledge!

      # The #legal_session? method & the #new_session_path method could be
      # implemented in the Visitor Session concern or controller.
      #
      # redirect_to(new_session_path) and return unless legal_session?

    end

  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
repres-bootstrap-2.0 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.11 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.10.2 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.10.1 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.10 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.9 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.8 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.7 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.6 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.5.2 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.5.1 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.5 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.4 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.3.2 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb.erb
repres-bootstrap-1.3.1 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb
repres-bootstrap-1.3 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb
repres-bootstrap-1.2 lib/generators/repres/bootstrap/platform/templates/app/controllers/concerns/priviledge_protection.rb