Class: Buildybuild::ActiveLinkGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/buildybuild/active_link/active_link_generator.rb

Instance Method Summary collapse

Instance Method Details



4
5
6
7
8
9
# File 'lib/generators/buildybuild/active_link/active_link_generator.rb', line 4

def add_active_link_helper
  insert_into_file(
    "app/helpers/application_helper.rb",
    helper_method, before: /^end\n*$/
  )
end