Sha256: d00bd34d7fe6cc7bcc850fe8d28e3677d4404ca0317564e849bab75fe47279a3

Contents?: true

Size: 875 Bytes

Versions: 60

Compression:

Stored size: 875 Bytes

Contents

require 'pageflow/dom/admin/attributes_tables'
require 'pageflow/dom/admin/edit_forms'
require 'pageflow/dom/admin/page'
require 'pageflow/dom/admin/sign_in_form'

module Pageflow
  module Dom
    # Dominos for admin ui elements and helper methods.
    #
    # @since 12.2
    module Admin
      # Sign in with the given role
      #
      # @param role [Symbol] Either :admin or one of the membership
      #   roles :publisher, :editor, :previewer or :member.
      #
      # @option options [Entry|Account] :on Membership entity if role
      #   is a membership role.
      #
      # @returns [User] Created user record.
      #
      # @example
      #   Pageflow::Dom::Admin.sign_in_as(:admin)
      #   Pageflow::Dom::Admin.sign_in_as(:editor, on: entry)
      def self.sign_in_as(role, options = {})
        Page.sign_in_as(role, options)
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
pageflow-support-15.1.2 pageflow/dom/admin.rb
pageflow-support-15.1.1 pageflow/dom/admin.rb
pageflow-support-15.1.0 pageflow/dom/admin.rb
pageflow-support-15.1.0.rc0 pageflow/dom/admin.rb
pageflow-support-15.1.0.beta6 pageflow/dom/admin.rb
pageflow-support-15.1.0.beta5 pageflow/dom/admin.rb
pageflow-support-15.1.0.beta4 pageflow/dom/admin.rb
pageflow-support-15.1.0.beta2 pageflow/dom/admin.rb
pageflow-support-15.1.0.beta1 pageflow/dom/admin.rb
pageflow-support-15.0.2 pageflow/dom/admin.rb
pageflow-support-15.0.1 pageflow/dom/admin.rb
pageflow-support-15.0.0 pageflow/dom/admin.rb
pageflow-support-14.5.1 pageflow/dom/admin.rb
pageflow-support-14.5.0 pageflow/dom/admin.rb
pageflow-support-15.0.0.rc2 pageflow/dom/admin.rb
pageflow-support-15.0.0.rc1 pageflow/dom/admin.rb
pageflow-support-15.0.0.beta4 pageflow/dom/admin.rb
pageflow-support-15.0.0.beta3 pageflow/dom/admin.rb
pageflow-support-14.4.0 pageflow/dom/admin.rb
pageflow-support-15.0.0.beta2 pageflow/dom/admin.rb