For some reason, customizing actions ( or even including them ) in initializers/rails_admin.rb is breaking;
def add_action_custom_key(action, &block)
action.instance_eval(&block) if block
@@actions ||= []
if action.custom_key.in?(@@actions.collect(&:custom_key))
raise "Action #{action.custom_key} already exists. Please change its custom key."
else
@@actions << action
end
end
Thrown error:
add_action_custom_key: Action dashboard already exists. Please change its custom key. (RuntimeError)
For some reason, customizing actions ( or even including them ) in
initializers/rails_admin.rbis breaking;Thrown error: