Sha256: 880e698a93127233dd09834a713c14644b9d70e9e2d6732946ca8467df6e2301

Contents?: true

Size: 459 Bytes

Versions: 9

Compression:

Stored size: 459 Bytes

Contents

module Dhatu
	class ResourceController < ApplicationController

		include ResourceHelper

	  before_action :configure_resource_controller
    before_action :require_read_permission, only: [:index, :show]
    before_action :require_create_permission, only: [:create]
    before_action :require_update_permission, only: [:update, :update_status, :mark_as_featured, :remove_from_featured]
    before_action :require_delete_permission, only: [:destroy]

	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dhatu-0.1.8 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.7 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.6 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.5 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.4 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.3 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.2 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.1 app/controllers/dhatu/resource_controller.rb
dhatu-0.1.0 app/controllers/dhatu/resource_controller.rb