aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-02-15 15:19:47 +0530
committerVipul A M <vipulnsward@gmail.com>2016-02-15 15:19:47 +0530
commit4feb34ddf291ac4985ea2403a0879b5839047074 (patch)
treee9b4b403de931771297fda222e2f4612b093f14b /railties/lib
parent2f284170c373d979d8c41c38689eef648730919e (diff)
parentd95cb0627a195b4dccfcebc78ae91e712d2daf5d (diff)
downloadrails-4feb34ddf291ac4985ea2403a0879b5839047074.tar.gz
rails-4feb34ddf291ac4985ea2403a0879b5839047074.tar.bz2
rails-4feb34ddf291ac4985ea2403a0879b5839047074.zip
Merge pull request #23569 from Gaurav2728/no_doc_of_some_railtie_methods
mark as #:nodoc: [ci skip]
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/railtie.rb11
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