Sha256: d70d09861eeafaeaffca41c6481d86e541749ff662c3f21bf10219b225a1689e
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
module Playmo module Recipes class FormsRecipe < Playmo::Recipe source_root File.expand_path('../templates/forms_recipe', __FILE__) def setup question "Which form builder you prefer?" do answer "Use default form_for helper" => :use_default answer "Simple Form" => :install_simple_form answer "Formtastic" => :install_formtastic end end protected def use_default # do nothing end def install_simple_form gem 'simple_form' Event.events.listen(:after_install) do |event_data| # generate end end def install_formtastic gem 'formtastic' Event.events.listen(:after_install) do |event_data| # generate end end end end end # Write down this recipe to our Cookbook if it's available require File.dirname(__FILE__) + '/compass_recipe' Playmo::Cookbook.instance.insert_after(Playmo::Recipes::CompassRecipe, Playmo::Recipes::FormsRecipe) if defined?(Playmo::Cookbook)
Version data entries
5 entries across 5 versions & 1 rubygems