class method self.new

Ruby on Rails 3.2.22.5

Since v2.2.3 Last seen in v3.2.22.5

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5

Signature

self.new(root)

No documentation comment.

Parameters

root req
Source
# File railties/lib/rails/plugin.rb, line 55
    def initialize(root)
      ActiveSupport::Deprecation.warn "You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released"
      @name = File.basename(root).to_sym
      config.root = root
    end

Defined in railties/lib/rails/plugin.rb line 55 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Plugin

Type at least 2 characters to search.

↑↓ navigate · open · esc close