Skip to content

Instantly share code, notes, and snippets.

@hanaori
Created January 15, 2016 10:35
Show Gist options
  • Save hanaori/73de09446256e550306a to your computer and use it in GitHub Desktop.
Save hanaori/73de09446256e550306a to your computer and use it in GitHub Desktop.
config/initializers/rails_admin.rb
# 先頭で使用するファイルを require する
require Rails.root.join('lib', 'display_order_action.rb')
RailsAdmin.config do |config|
config.actions do
dashboard # mandatory
index # mandatory
new
export
bulk_delete
show
edit
delete
# カスタムアクションを宣言
display_order_action
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment