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-17.0.4 pageflow/dom/admin.rb
pageflow-support-17.0.3 pageflow/dom/admin.rb
pageflow-support-17.0.2 pageflow/dom/admin.rb
pageflow-support-17.0.1 pageflow/dom/admin.rb
pageflow-support-17.0.0 pageflow/dom/admin.rb
pageflow-support-16.2.0 pageflow/dom/admin.rb
pageflow-support-16.1.0 pageflow/dom/admin.rb
pageflow-support-16.0.0 pageflow/dom/admin.rb
pageflow-support-15.8.0 pageflow/dom/admin.rb
pageflow-support-14.5.2 pageflow/dom/admin.rb
pageflow-support-15.7.1 pageflow/dom/admin.rb
pageflow-support-15.7.0 pageflow/dom/admin.rb
pageflow-support-15.6.1 pageflow/dom/admin.rb
pageflow-support-15.6.0 pageflow/dom/admin.rb
pageflow-support-15.5.0 pageflow/dom/admin.rb
pageflow-support-15.4.0 pageflow/dom/admin.rb
pageflow-support-15.3.0 pageflow/dom/admin.rb
pageflow-support-15.2.2 pageflow/dom/admin.rb
pageflow-support-15.2.1 pageflow/dom/admin.rb
pageflow-support-15.2.0 pageflow/dom/admin.rb