Newer
Older
dmpopidor / app / controllers / admin / annotations_controller.rb
@Jimmy Angelakos Jimmy Angelakos on 19 May 2017 597 bytes Fix for super admin (new annotation model)
module Admin
  class AnnotationsController < Admin::ApplicationController
    # To customize the behavior of this controller,
    # you can overwrite any of the RESTful actions. For example:
    #
    # def index
    #   super
    #   @resources = Annotation.
    #     page(params[:page]).
    #     per(10)
    # end

    # Define a custom finder by overriding the `find_resource` method:
    # def find_resource(param)
    #   Annotation.find_by!(slug: param)
    # end

    # See https://administrate-prototype.herokuapp.com/customizing_controller_actions
    # for more information
  end
end