Skip to content

Friendly_ID candidates not triggered? #15

@shockie

Description

@shockie

Hi,

I have a model that needs translated slugs based on candidates(to evade the UUID's). I tried using

class Category < ActiveRecord::Base
  friendly_id :name_slugged, :use => :slugged

  def name_slugged
    [
      :name,
      [:name, :other_attr]
    ]
  end
end

but this won't be triggered by active_admin_seo (see ActiveAdmin::Seo::add_friendly_id), is there a way where admin_admin_seo triggers the candidates method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions