Sha256: 6d55dae1cbae3cf32816cc4701f2c095490b31d36e4b554acf1b76a8e4d32547

Contents?: true

Size: 434 Bytes

Versions: 19

Compression:

Stored size: 434 Bytes

Contents

module RailsApi
  class SecureResourcesController < ApplicationController
    before_filter :authenticate_api_user!, unless: :is_navigational_format?
    before_filter :authenticate_user!, if: :is_navigational_format?

    def create
      render json: {secure: 'data'}
    end

    def show
      respond_to do |format|
        format.html { render }
        format.json { render json: {secure: 'data'} }
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
g5_authenticatable-0.9.1.pre.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.8.1.pre spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.8.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.8.0.beta1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.5 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.5.beta spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.4 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.4.beta.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.3 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.7.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.6.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.5.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.5.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.4.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.4.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.4.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-0.3.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb