Sha256: c08b641831fee840d8c3f2fd9c1199c873b109d3169659317ac5795a06db03ba
Contents?: true
Size: 569 Bytes
Versions: 5
Compression:
Stored size: 569 Bytes
Contents
require_dependency "notee/application_controller" module Notee class NoteesController < ApplicationController # callbacks skip_before_action :restrict_access_json, only: [:index] before_action :restrict_access, only: [:index] def index end private def restrict_access # authenticate_or_request_with_http_token do |token, options| # Token.exists?(access_token: token) # end unless Token.exists?(access_token: session[:access_token]) redirect_to new_token_path and return end end end end
Version data entries
5 entries across 5 versions & 1 rubygems