Sha256: 58327e192b33daacbfb670cc26741a0cea7707899729ab9216f59ca5800ae1c9

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 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"
        warn "Warning: rails_kindeditor ~> v0.3.0 only support Rails3.1+!"
        warn "If you're using rails3.0.x, please check rails_kindeditor v0.2.8"
      else
        template "rails_kindeditor.rb", "config/initializers/rails_kindeditor.rb"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_kindeditor-0.3.8 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.7 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.6 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.5 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.4 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.3 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.2 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.1 lib/generators/rails_kindeditor/install/install_generator.rb
rails_kindeditor-0.3.0 lib/generators/rails_kindeditor/install/install_generator.rb