Class: Views::Lists::Edit

Inherits:
Form
  • Object
show all
Defined in:
app/views/lists/edit.rb

Instance Method Summary collapse

Instance Method Details

#before_template ⇒ Object



4
5
6
# File 'app/views/lists/edit.rb', line 4

def before_template
  @list_name = @list.special ? t(@list.name) : @list.name
end

#view_template ⇒ Object



8
9
10
11
12
13
14
# File 'app/views/lists/edit.rb', line 8

def view_template
  PageTitle title: t("views.lists.edit.title"), breadcrumbs: {
    t("views.lists.index.title") => lists_path,
    @list_name => list_path(@list)
  }
  super
end