Sha256: 761b4fd169b84b0ec8189e252ad1447e45c3a2895fb213b5b168c2beaceb0267
Contents?: true
Size: 787 Bytes
Versions: 40
Compression:
Stored size: 787 Bytes
Contents
require 'file_not_found_page' unless defined?(::CustomFileNotFoundPage) class ::CustomFileNotFoundPage < FileNotFoundPage end end class FileNotFoundDataset < Dataset::Base uses :home_page def load create_page "Draft File Not Found", :class_name => "FileNotFoundPage", :status_id => Status[:draft].id create_page "File Not Found", :slug => "missing", :class_name => "FileNotFoundPage" create_page "Gallery" do create_page "Draft No Picture", :class_name => "CustomFileNotFoundPage", :status_id => Status[:draft].id create_page "No Picture", :class_name => "CustomFileNotFoundPage" end create_page "Drafts" do create_page "Lonely Draft File Not Found", :class_name => "FileNotFoundPage", :status_id => Status[:draft].id end end end
Version data entries
40 entries across 40 versions & 5 rubygems