Skip to content

V3.0.0.alpha : running in production is breaking #3420

@RocKhalil

Description

@RocKhalil

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions