Permalink
Browse files

mark as #:nodoc: [ci skip]

can’t be instantiate directly or may be no need for doc.
  • Loading branch information...
Gaurav2728 committed Feb 9, 2016
1 parent 90cd71c commit d95cb0627a195b4dccfcebc78ae91e712d2daf5d
Showing with 7 additions and 4 deletions.
  1. +7 −4 railties/lib/rails/railtie.rb
@@ -183,7 +183,7 @@ def configure(&block)
end
protected
def generate_railtie_name(string)
def generate_railtie_name(string) #:nodoc:
ActiveSupport::Inflector.underscore(string).tr("/", "_")
end
@@ -200,21 +200,24 @@ def method_missing(name, *args, &block)
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

0 comments on commit d95cb06

Please sign in to comment.