Sha256: ee196f200d7b3575e4b482e717212d6696b27b64dfa7e606590bd8c8b42e5f62

Contents?: true

Size: 1.04 KB

Versions: 19

Compression:

Stored size: 1.04 KB

Contents

# -*- encoding : utf-8 -*-
module Carnival
  class AdminUserPresenter < Carnival::BaseAdminPresenter
    field :id,
          :actions => [:index, :show],
          :sortable => {:direction => :asc, :default => true},
          :searchable => true,
          :advanced_search => {:operator => :equal}
    field :name,
          :actions => [:index, :new, :show, :edit],
          :searchable => true,
          :advanced_search => {:operator => :like},
          position: {line: 1, column: 1}
    field :email,
          :actions => [:index, :new, :show, :edit],
          :sortable => true,
          :searchable => true,
          :advanced_search => {:operator => :like},
          position: {line: 1, column: 2, size: 5}
    field :last_sign_in_at, :actions => [:index, :show]
    field :sign_in_count, :actions => [:index, :show]

    action :show
    action :edit
    action :destroy
    action :new
    # action :teste1, :target => :record, :path=>"http://www.google.com.br"
    # action :teste2, :target => :page, :path=>"http://www.google.com.br"
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
carnival-0.0.51 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.50 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.49 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.48 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.47 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.45 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.44 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.43 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.42 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.41 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.40 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.39 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.38 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.37 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.36 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.35 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.34 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.33 app/presenters/carnival/admin_user_presenter.rb
carnival-0.0.26 app/presenters/carnival/admin_user_presenter.rb