Sha256: 7c9e66bff969bc2c7ba80c364733c75f23039ca91b1121e27fbb83694e102514

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

module RailsKindeditor
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
    desc "Install kindeditor for your application."

    def copy_kindeditor_files
      if ::Rails.version < "3.1.0"
        directory "kindeditor", "public/javascripts/kindeditor"
      else # Rails3.1+
        directory "kindeditor", "public/kindeditor"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_kindeditor-0.2.3 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.2.2 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.2.1 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.2.0 lib/generators/rails_kindeditor/install/install_generator.rb