diff options
author | Gaurav Sharma <gaurav2728@gmail.com> | 2016-02-09 09:59:32 +0530 |
---|---|---|
committer | Gaurav Sharma <gaurav2728@gmail.com> | 2016-02-15 15:12:51 +0530 |
commit | d95cb0627a195b4dccfcebc78ae91e712d2daf5d (patch) | |
tree | ed84a6cc265083ea40e6a6a4d8c2cbb7401df8ae /railties | |
parent | 90cd71c8d77a2950e60734513493db399103384a (diff) | |
download | rails-d95cb0627a195b4dccfcebc78ae91e712d2daf5d.tar.gz rails-d95cb0627a195b4dccfcebc78ae91e712d2daf5d.tar.bz2 rails-d95cb0627a195b4dccfcebc78ae91e712d2daf5d.zip |
mark as #:nodoc: [ci skip]
can’t be instantiate directly or may be no need for doc.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/railtie.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/railties/lib/rails/railtie.rb b/railties/lib/rails/railtie.rb index 8c24d1d56d..99dd571a00 100644 --- a/railties/lib/rails/railtie.rb +++ b/railties/lib/rails/railtie.rb @@ -183,7 +183,7 @@ module Rails end protected - def generate_railtie_name(string) + def generate_railtie_name(string) #:nodoc: ActiveSupport::Inflector.underscore(string).tr("/", "_") end @@ -200,21 +200,24 @@ module Rails delegate :railtie_name, to: :class - def initialize + def initialize #:nodoc: if self.class.abstract_railtie? raise "#{self.class.name} is abstract, you cannot instantiate it directly." end end - def configure(&block) + def configure(&block) #:nodoc: instance_eval(&block) end + # This is used to create the <tt>config</tt> object on Railties, an instance of + # Railtie::Configuration, that is used by Railties and Application to store + # related configuration. def config @config ||= Railtie::Configuration.new end - def railtie_namespace + def railtie_namespace #:nodoc: @railtie_namespace ||= self.class.parents.detect { |n| n.respond_to?(:railtie_namespace) } end |