Sha256: 566c64afa69cf28ede2c6950a64c46b51176d886d6813af86106eea11179496c
Contents?: true
Size: 1.27 KB
Versions: 8
Compression:
Stored size: 1.27 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 :password, :actions => [:new, :edit], position: {line: 2, column: 1, size: 5} field :password_confirmation, :actions => [:new, :edit], position: {line: 2, 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
8 entries across 8 versions & 1 rubygems