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.12.0 lib/generators/navigation_config/navigation_config_generator.rb
jordanyeo-simple-navigation-3.11.1 lib/generators/navigation_config/navigation_config_generator.rb
jordanyeo-simple-navigation-3.11.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.11.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.10.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.10.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.9.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.8.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.7.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.6.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.5.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.5.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.4.2 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.4.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.4.0 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.3.4 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.3.3 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.3.2 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.3.1 lib/generators/navigation_config/navigation_config_generator.rb
simple-navigation-3.3.0 lib/generators/navigation_config/navigation_config_generator.rb