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.4.2 lib/tasks/lolita-menu.rake
lolita-menu-0.4.1 lib/tasks/lolita-menu.rake
lolita-menu-0.4.0 lib/tasks/lolita-menu.rake
lolita-menu-0.3.6 lib/tasks/lolita-menu.rake
lolita-menu-0.3.5 lib/tasks/lolita-menu.rake
lolita-menu-0.3.4 lib/tasks/lolita-menu.rake
lolita-menu-0.3.2 lib/tasks/lolita-menu.rake
lolita-menu-0.3.1 lib/tasks/lolita-menu.rake
lolita-menu-0.3.0 lib/tasks/lolita-menu.rake
lolita-menu-0.2.2 lib/tasks/lolita-menu.rake
lolita-menu-0.2.1 lib/tasks/lolita-menu.rake
lolita-menu-0.2.0 lib/tasks/lolita-menu.rake
lolita-menu-0.1.7 lib/tasks/lolita-menu.rake
lolita-menu-0.1.6 lib/tasks/lolita-menu.rake
lolita-menu-0.1.5 lib/tasks/lolita-menu.rake
lolita-menu-0.1.4 lib/tasks/lolita-menu.rake
lolita-menu-0.1.1 lib/tasks/lolita-menu.rake
lolita-menu-0.1.0 lib/tasks/lolita-menu.rake
lolita-menu-0.0.15 lib/tasks/lolita-menu.rake
lolita-menu-0.0.14 lib/tasks/lolita-menu.rake