class Blocky::InstallGenerator
Public Instance Methods
install_blocky_content_helper()
click to toggle source
Install the content block helper into the main app’s ApplicationHelper.
# File lib/generators/blocky/install_generator.rb, line 11 def install_blocky_content_helper insert_into_file(File.join("app", "helpers", "application_helper.rb"), after: "module ApplicationHelper\n") do " include BlockyHelper\n" end end
install_migrations()
click to toggle source
Install the database migrations required for Blocky’s content blocks
# File lib/generators/blocky/install_generator.rb, line 6 def install_migrations rake "blocky:install:migrations" end