Sha256: 50c4bf590b480128148e56ade57a55700403d0ce7db759929be6a995b046aa07

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

class AccessOnceController < ApplicationController

  include RailsApiAuth::Authentication

  if Rails::VERSION::MAJOR < 4
    before_filter :consume_single_use_oauth2_token!
  else
    before_action :consume_single_use_oauth2_token!
  end

  def index
    if Rails::VERSION::MAJOR < 4
      render text: 'zuper content', status: 200
    else
      render plain: 'zuper content', status: 200
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_api_auth-0.0.8 spec/dummy/app/controllers/access_once_controller.rb
rails_api_auth-0.0.7 spec/dummy/app/controllers/access_once_controller.rb