Class: RailsZero::PagesConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_zero/pages_config.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
# File 'lib/rails_zero/pages_config.rb', line 3

def links
  @links ||= []
end

#paths_to_except_from_cleanupObject



7
8
9
10
11
12
13
# File 'lib/rails_zero/pages_config.rb', line 7

def paths_to_except_from_cleanup
  @paths_to_except_from_cleanup ||= begin
    %w[ 404.html 422.html 500.html favicon.ico ].map do |f|
      Rails.root.join('public', f).to_s
    end
  end
end