Skip to content

export csv with column order expected for decryption #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion app/models/concerns/rails_admin_config/for_ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,27 @@ module ForTicket

included do
rails_admin do
fields :id, :entered_at, :left_at, :area, :encrypted_data
field :id
field :area, :string do
formatted_value do
bindings[:view].link_to(
value&.name,
bindings[:view].show_path(model_name: 'area', id: value&.id)
)
end
export_value do
value&.name
end
end
field :entered_at
field :left_at
field :encrypted_data

export do
configure :id do
hide
end
end
end
end
end
Expand Down