Class: Archangel::Collection

Inherits:
ApplicationRecord show all
Defined in:
app/models/archangel/collection.rb

Overview

Collection model

Instance Method Summary collapse

Instance Method Details

#to_paramString

Overwrite resource id to ‘slug`

Returns:

  • (String)

    the aliased resource param



30
31
32
# File 'app/models/archangel/collection.rb', line 30

def to_param
  slug
end