Sha256: fc77923e8b5841ca523bb96e7fdb918c76ebe5fa18f4dd8fe0f7c14cb72fa03e

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

module SimpleResource
  class UserController < SimpleResource::BaseController
    if defined?(Devise)
      before_filter :authenticate_user!
    end

    protected

    def begin_of_association_chain
      if defined?(Devise)
        current_user
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_resource-0.5.0 app/controllers/simple_resource/user_controller.rb