Sha256: 8ebf415244d5beb28bd3cd86fd2cd773d841649b746f86af18b2dae4257ba704
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
require 'generators/happy_seed/happy_seed_generator' require 'generators/happy_seed/bootstrap/bootstrap_generator' module HappySeed module Generators class CkeditorGenerator < HappySeedGenerator source_root File.expand_path('../templates', __FILE__) def self.fingerprint gem_available? 'ckeditor' end def install_html_email return if already_installed require_generator BootstrapGenerator gem 'ckeditor' Bundler.with_clean_env do run "bundle install --without production" end inject_into_file "config/environments/production.rb", " config.assets.precompile += Ckeditor.assets\n config.assets.precompile += ['ckeditor/*']\n", before: "end\n" inject_into_file "app/assets/javascripts/application.js", "\n//= require ckeditor/init", after: "//= require bootstrap-sprockets" directory "." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
happy_seed-0.0.21 | lib/generators/happy_seed/ckeditor/ckeditor_generator.rb |