Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ def model_class
Spree::OptionType
end

def row_url(option_type)
spree.edit_admin_option_type_path(option_type)
end

def sortable_options
{
url: ->(option_type) { solidus_admin.move_option_type_path(option_type) },
Expand Down Expand Up @@ -55,17 +51,20 @@ def name_column
{
header: :name,
data: ->(option_type) do
content_tag :div, option_type.name
link_to option_type.name, edit_path(option_type),
class: 'body-link'
end
}
end

def presentation_column
{
header: :presentation,
data: ->(option_type) do
content_tag :div, option_type.presentation
end
data: ->(option_type) { option_type.presentation }
}
end

def edit_path(option_type)
spree.edit_admin_option_type_path(option_type)
end
end
Loading