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