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.sass to app/stylesheets and jquery-ui-form.js to public/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.sass', 'app/stylesheets/jquery-ui-form.sass' template 'jquery-ui-form.js', 'public/javascripts/jquery-ui-form.js' end end end