class BulutfonDashboard::Generators::HelpersGenerator

Constants

HELPERS

Public Instance Methods

create_helpers() click to toggle source
# File lib/generators/bulutfon_dashboard/helpers_generator.rb, line 14
def create_helpers
  scope = 'bulutfon_dashboard'
  controllers = options[:helpers] || HELPERS
  controllers.each do |name|
    template "#{name}_helper.rb",
             "app/helpers/#{scope}/#{name}_helper.rb"
  end
end