Sha256: 29932912087fdea6fa86384b31b029396dc4a90c77c9344fc51208d7e1fa8916
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
require 'rails/generators' module SimpleFormDatetimepicker module Generators class InstallGenerator < ::Rails::Generators::Base desc "Installs SimpleFormDatetimepicker" def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end def copy_initializer copy_file 'simple_form_datetimepicker.rb', 'config/initializers/simple_form_datetimepicker.rb' inject_into_file 'app/assets/javascripts/application.js', :before => '//= require_tree .' do "//= require simple_form_datetimepicker/init\n" end inject_into_file 'app/assets/stylesheets/application.css', :before => ' *= require_self' do " *= require bootstrap-datetimepicker\n" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems