Class: Suspenders::InlineSvgGenerator

Inherits:
Generators::Base
  • Object
show all
Defined in:
lib/suspenders/generators/inline_svg_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#add_inline_svgObject



5
6
7
8
# File 'lib/suspenders/generators/inline_svg_generator.rb', line 5

def add_inline_svg
  gem "inline_svg"
  Bundler.with_clean_env { run "bundle install" }
end

#configure_inline_svgObject



10
11
12
# File 'lib/suspenders/generators/inline_svg_generator.rb', line 10

def configure_inline_svg
  copy_file "inline_svg.rb", "config/initializers/inline_svg.rb"
end