Sha256: f8642bee01bcd83e8d1f31967479e01686a674ee7a8489fd29bed0d63651e503
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception def models render json: Adminish::Admin.new([Post, Category]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminish-0.0.1 | test/dummy/app/controllers/application_controller.rb |