Sha256: 2447bc4923c0ed7fb88bbb05d59b0ac6d2179a28ae982ce6744402dbb53094b5

Contents?: true

Size: 425 Bytes

Versions: 9

Compression:

Stored size: 425 Bytes

Contents

module DatePicker
  module Generators
    class ConfigGenerator < ::Rails::Generators::Base
      desc "Install DatePicker config"
      argument :style, type: :string, default: :bootstrap
      
      source_root File.expand_path('../templates', __FILE__)
      
      def create_config
        template 'config/date_picker.erb', "config/initializers/date_picker.rb", {style: self.style}
      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/config_generator.rb
date_picker-0.0.8 lib/generators/date_picker/config_generator.rb
date_picker-0.0.7 lib/generators/date_picker/config_generator.rb
date_picker-0.0.6 lib/generators/date_picker/config_generator.rb
date_picker-0.0.5 lib/generators/date_picker/config_generator.rb
date_picker-0.0.4 lib/generators/date_picker/config_generator.rb
date_picker-0.0.3 lib/generators/date_picker/config_generator.rb
date_picker-0.0.2 lib/generators/date_picker/config_generator.rb
date_picker-0.0.1 lib/generators/date_picker/config_generator.rb