Class: FileNotFoundPage

Inherits:
Page
  • Object
show all
Defined in:
app/models/file_not_found_page.rb

Instance Attribute Summary

Attributes inherited from Page

#pagination_parameters, #request, #response

Instance Method Summary collapse

Methods inherited from Page

#allowed_children_lookup, #cache?, #child_path, date_column_names, #default_child, descendant_class, #description, #description=, display_name, display_name=, #field, #find_by_path, find_by_path, #has_or_inherits_part?, #headers, #inherits_part?, is_descendant_class_name?, #layout_with_inheritance, load_subclasses, missing?, new_with_defaults, #part, #part?, #path, #process, #published?, #render, #render_part, #render_snippet, root, save_order, #scheduled?, #set_allowed_children_cache, #status, #status=, #update_status

Methods included from Annotatable

included

Methods included from TrustyCms::Taggable

included, #render_tag, #tag_descriptions, #tags, #warn_of_tag_deprecation

Instance Method Details

#allowed_childrenObject



6
7
8
# File 'app/models/file_not_found_page.rb', line 6

def allowed_children
  []
end

#cache_timeoutObject



2
3
4
# File 'app/models/file_not_found_page.rb', line 2

def cache_timeout
  5.minutes
end

#response_codeObject



27
28
29
# File 'app/models/file_not_found_page.rb', line 27

def response_code
  404
end

#virtual?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/models/file_not_found_page.rb', line 23

def virtual?
  true
end