Sha256: e7ca595ac7dcce86a3f020d0ad3bef1844b7deabf99a545e8044a1a6b7708860
Contents?: true
Size: 588 Bytes
Versions: 9
Compression:
Stored size: 588 Bytes
Contents
module Lolita module Menu class Configuration attr_writer :autocomplete_output_file attr_writer :autocomplete_input_file def autocomplete_output_file file_location(@autocomplete_output_file) || File.join(Rails.root,"public","lolita-menu-url.txt") end def autocomplete_input_file file_location(@autocomplete_input_file) || File.join(Rails.root,"config","lolita-menu-urls.rb") end private def file_location(location) location.respond_to?(:call) ? location.call : location end end end end
Version data entries
9 entries across 9 versions & 1 rubygems