class Rockstart::FrontendAppGenerator
Public Instance Methods
add_application_urls()
click to toggle source
# File lib/generators/rockstart/frontend_app/frontend_app_generator.rb, line 24 def add_application_urls if !force_url_helpers? && File.exist?(Rails.root.join("app", "controllers", "concerns", "application_urls.rb")) return # Don't override existing helpers end generate "rockstart:frontend_app:application_urls" end
add_simple_form()
click to toggle source
# File lib/generators/rockstart/frontend_app/frontend_app_generator.rb, line 16 def add_simple_form generate "rockstart:frontend_app:simple_form" end
install_titles()
click to toggle source
# File lib/generators/rockstart/frontend_app/frontend_app_generator.rb, line 20 def install_titles generate "rockstart:frontend_app:titles" end
setup_assets()
click to toggle source
# File lib/generators/rockstart/frontend_app/frontend_app_generator.rb, line 12 def setup_assets generate "rockstart:frontend_app:assets" end
Private Instance Methods
force_url_helpers?()
click to toggle source
# File lib/generators/rockstart/frontend_app/frontend_app_generator.rb, line 35 def force_url_helpers? options.fetch(:force_url_helpers) end