Sha256: 034d9dcbd13845b98a334cd5860cecb141a5825d4309aa48feae74afa9d1964f

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module <%= class_name %>
  class ProfilesController < ::<%= class_name %>Controller
    require_login!
    before_filter(only: :show) { authorize!(:read, resource) }
    before_filter(only: :update) { authorize!(:update, resource) }

    unobtrusive resource_class: User,
                resource: -> { current_user },
                relationship_name: :users
    def show
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
billet-0.0.1 lib/generators/billet/namespace/templates/controllers/api_controllers/profiles_controller.rb.erb