Sha256: a3e9cfe8715ff3928bce1a9f95676bfd3c5fac8b3f4f86ec6555d83d5b19bb3e

Contents?: true

Size: 403 Bytes

Versions: 9

Compression:

Stored size: 403 Bytes

Contents

module DatePicker
  module Generators
    class SimpleFormGenerator < ::Rails::Generators::Base
      
      argument :name, type: :string, default: "date_picker"
      
      source_root File.expand_path('../templates', __FILE__)
      
      def create_input
        template 'inputs/date_picker_input.erb', "app/inputs/" + self.name + "_input.rb", {name: self.name}
      end
      
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
date_picker-0.0.9 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.8 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.7 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.6 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.5 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.4 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.3 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.2 lib/generators/date_picker/simple_form_generator.rb
date_picker-0.0.1 lib/generators/date_picker/simple_form_generator.rb