module JqueryUiForm # Copies jquery-ui-form.sass to app/stylesheets and jquery-ui-form.js to public/javascirpts and a config initializer config/initializers/jquery-ui-form.rb # # @example # $ rails generate formtastic:install # class InstallGenerator < Rails::Generators::Base desc "Copies jquery-ui-form.css.scss to app/assets/stylesheets and jquery-ui-form.js.coffee to app/assets/javascirpts and a config initializer to config/initializers/jquery-ui-form.rb" source_root File.expand_path('../../../templates', __FILE__) def copy_files template 'jquery-ui-form.rb', 'config/initializers/jquery-ui-form.rb' template 'jquery-ui-form.css.scss', 'app/assets/stylesheets/jquery-ui-form.css.scss' template 'jquery-ui-form.js', 'app/assets/javascripts/jquery-ui-form.js.coffee' end end end