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