Sha256: fd98c5164ef1426c9a0c0c0d4067c048fc6a68fe277bf2d18bf6009ea46c6aa9
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require 'rails' # Supply generator if asset pipeline is not enabled if !::Rails.application.config.assets.enabled module KendoUI module Generators class InstallGenerator < ::Rails::Generators::Base desc "This generator installs KendoUI #{KendoUI::Rails::KENDOUI_VERSION}" class_option :ui, :type => :boolean, :default => false, :desc => "Include jQueryUI" source_root File.expand_path('../../../../../vendor/assets/javascripts/kendo', __FILE__) def copy_kendoui say_status("copying", "Kendo UI (#{Kendoui::Rails::KENDOUI_VERSION})", :green) copy_file "kendo.all.min.js", "public/javascripts/kendo.all.min.js" end #Add option to copy over another Style (Metro, etc) def copy_kendoui_styles say_status("copying", "Kendo UI (#{Jquery::Rails::KENDOUI_VERSION}) default stylesheets", :green) source_root File.expand_path('../../../../../vendor/assets/stylesheets/kendo', __FILE__) copy_file "kendo.common.min.css", "public/stylesheets/kendo.common.min.css" copy_file "kendo.default.min.css", "public/stylesheets/kendo.default.min.css" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kendoui-rails-0.0.2 | lib/generators/kendoui/install/install_generator.rb |