Sha256: 3f75e3f1efcf66db0fb575dfe9221804f412bc37b4dbfcb2faf69d729df2baf2
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'rails/generators' module SimpleFormFileinput module Generators class InstallGenerator < ::Rails::Generators::Base desc "Installs SimpleFormFileinput" def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end def copy_initializer copy_file 'simple_form_fileinput.rb', 'config/initializers/simple_form_fileinput.rb' inject_into_file 'app/assets/javascripts/application.js', :before => '//= require_tree .' do "//= require simple_form_fileinput/init\n" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems