Sha256: b903fe8050eb97c4eedccef0a654d1a7bc3b193e46e9fce0942d15cb7ff812b9

Contents?: true

Size: 444 Bytes

Versions: 21

Compression:

Stored size: 444 Bytes

Contents

namespace :lolita_menu do
  task :require => :environment do
    require "lolita-menu"
  end
  desc 'Generate autocomplete file'
  task :generate_urls => ["lolita_menu:require"] do
    require "lolita-menu"
    if File.exist?(Lolita::Menu::Autocomplete::FileBuilder.input_file)
      Lolita::Menu::Autocomplete.generate_urls
    else
      raise "Lolita menu URL's generator file not found. Call `rails g lolita_menu:install`"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
lolita-menu-0.0.13 lib/tasks/lolita-menu.rake