Sha256: 7dc06f754454e72a8f4a6bea972a66257f339918ece87fa6f3b17a5bceec92e2

Contents?: true

Size: 551 Bytes

Versions: 38

Compression:

Stored size: 551 Bytes

Contents

class NavigationConfigGenerator < Rails::Generators::Base
  def self.source_root
    @source_root ||= File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','generators','navigation_config', 'templates'))
  end

  desc 'Creates a template config file for the simple-navigation plugin. You will find the generated file in config/navigation.rb.'
  def navigation_config
    copy_file('config/navigation.rb', 'config/navigation.rb')    
    say File.read(File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','README')))
  end
  
end

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
simple-navigation-3.2.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-ext-0.0.2 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-ext-0.0.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.1.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.1.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.0.2 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.0.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.0.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.0.0.beta2 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.0.0.beta1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.7.3 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.7.2 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.7.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.7.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.6.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.5.4 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.5.3 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-2.5.2 lib/generators/navigation_config/navigation_config_generator.rb