aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/railtie.rb
Commit message (Collapse)AuthorAgeFilesLines
* `respond_to_missing?` should be privateRyuta Kamizono2017-04-221-4/+4
| | | | | | | Follow up of 03d3f036. Some of `respond_to?` were replaced to `respond_to_missing?` in 03d3f036. But the visibility is still public. It should be private.
* Privatize unneededly protected methods in RailtiesAkira Matsuda2016-12-251-3/+2
|
* remove warning from railtieyuuji.yaginuma2016-11-021-1/+1
| | | | | | | | | | | This removes the following warnings. ```ruby rails/railties/lib/rails/railtie.rb:186: warning: instance variable @rake_tasks not initialized rails/railties/lib/rails/railtie.rb:186: warning: instance variable @rake_tasks not initialized rails/railties/lib/rails/railtie.rb:186: warning: instance variable @load_console not initialized rails/railties/lib/rails/railtie.rb:186: warning: instance variable @rake_tasks not initialized ```
* Make `register_block_for` privateArthur Neves2016-11-011-11/+11
|
* Merge PR #26052Arthur Neves2016-11-011-12/+16
|\
| * Added register_block method to register rake_tasks, generators, console & ↵Rafael Fidelis2016-11-011-12/+16
| | | | | | | | | | | | | | | | | | | | runner blocks fixing @generators var initialization pre initializing variables values Changing from var init to symbol to instance var get/set
* | normalizes indentation and whitespace across the projectXavier Noria2016-08-061-19/+19
| |
* | applies new string literal convention in railties/libXavier Noria2016-08-061-5/+5
|/ | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* removes unneeded require in rails/railtie.rbXavier Noria2016-04-181-2/+1
| | | | | | | | | | | | Railties' `config` method instatiates a Rails::Railtie::Configuration object. Rails::Configuration is not used in this file. The patch does not replace the file being required with the one for Rails::Railtie::Configuration because that one is autoloaded. See the spot where this patch changes double quotes with single quotes. Rails::Railtie::Configuration does depend on Rails::Configuration, and it requires it accordingly.
* edit pass over the RDoc of Rails::Railtie [ci skip]Xavier Noria2016-04-111-36/+36
| | | | | | | | | | | | | | | | The pass touches a few minor things. One important aspect is that the wording treats "railtie" as a regular noun. This is so because Railtie is a constant and generally the text refers to "classes that act as railties", which is different. Railties are so fundamental in Rails that deserve a noun, like engine, class, array, application, etc. They have a meaning per se, beyond constants. Also, make clear an extension's railtie does not need to be called "Railtie" or have "Railtie" in their class name.
* mark as #:nodoc: [ci skip]Gaurav Sharma2016-02-151-4/+7
| | | can’t be instantiate directly or may be no need for doc.
* improve grammarMichael Dawson2015-01-141-1/+1
|
* Ensure we supply Kernel#y for 1.9 tooMatthew Draper2014-04-041-8/+10
| | | | | | | | In 1.9, it doesn't live in its own file, so we'll have to define it ourselves. Check RUBY_VERSION, instead of rescuing the require, because we want this to break if `psych/y` moves in a future Ruby release.
* pass strings to the underscore methodAaron Patterson2014-02-261-2/+2
|
* Improve font of some code in API documentation [ci skip]Chun-wei Kuo2013-12-261-3/+3
| | | | | * Add "<tt>" or "+" to improve font of some code and filenames in API documentation * Does not contain wording changes
* Removing the app constant and replacing it with Rails.applicationwangjohn2013-04-301-1/+5
| | | | | syntax. This helps removing the class level abstraction of an application.
* Removing Railtie::Configurable from the base Railtie object and makingwangjohn2013-04-291-2/+34
| | | | | Railtie itself abstract. This stops the weird behavior of forcing subclasses of Railtie to include the Configurable module.
* delegate to :class rather than 'self.class'Gosha Arinich2013-01-061-1/+1
|
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-1/+1
|
* Get rid of config.preload_frameworks in favor of config.eager_load_namespacesJosé Valim2012-08-211-3/+0
| | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly.
* Remove unused responsibilities and add a few load definitions to enginesJosé Valim2012-06-291-15/+17
| | | | | | | | Since plugins were removed, we can clean up a few methods in engines. We also use this opportunity to move `load_console`, `load_tasks` and `load_runner` to Rails::Engine. This means that, if someone wants to improve script/rails for engines to support console or runner commands, part of the work is already done.
* Rake::DSL should always be availableJeremy Kemper2012-05-311-1/+1
|
* Explicitly require rake so its DSL is availableJeremy Kemper2012-05-311-0/+1
|
* Add support runner hook.kennyj2012-05-291-0/+10
|
* Code-format references to config settingsMark Rushakoff2012-04-271-1/+1
|
* Updated/changed useless tr/gsubsJurriaan Pruis2012-04-031-1/+1
|
* Remove Active Resource source files from the repositoryPrem Sichanugrist2012-03-131-1/+1
| | | | | | | | | | Dear Active Resource, It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository. I will miss you, @sikachu.
* Rails::Plugin has goneSantiago Pastorino2012-01-031-4/+4
|
* Call a block passed rake_tasks method in the self contextkennyj2011-11-271-1/+1
|
* Rely on a public contract between railties instead of accessing railtie ↵José Valim2011-11-231-1/+1
| | | | methods directly.
* Requiring delegate.Arun Agrawal2011-08-161-0/+1
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-181-1/+1
|\
| * fixed typo for a methodnamethoefer2011-06-111-1/+1
| |
* | load_generators from engine should also handle self automatically.José Valim2011-06-151-3/+3
|/
* Use namespace if it's a mountable engineStefan Sprenger2011-06-071-0/+5
|
* Everyone receives app as argument for consistency.José Valim2011-05-251-5/+5
|
* Update generator config to support hiding namespaces and pass the app into ↵wycats2011-05-241-2/+2
| | | | generator blocks
* Make Rake::DSL methods available within Railtie rake_tasks blockPatrick Quinn2011-05-201-0/+1
| | | | Fixes incompatibility introduced by Rake 0.9.0
* Move sandbox to AR and pass the sandbox as a value. This way, other ORMs ↵José Valim2011-05-041-2/+2
| | | | like Datamapper can also have their own sandboxing in rails console.
* improve language and examples in Railtie docsJimmy Cuadra2011-02-181-33/+21
|
* Minor fix on Rails:Railtie documentationzhengjia2010-11-211-2/+2
|
* Load rake tasks defined in superclasses in context of railtiesPiotr Sarnacki2010-10-091-0/+7
|
* Deprecate generators in Railties. You should use app_generators instead.José Valim2010-10-021-1/+1
|
* Add table_name_prefix to Engine's namespace automaticallyPiotr Sarnacki2010-09-031-1/+6
|
* Always convert railtie_name to stringPiotr Sarnacki2010-09-031-1/+1
|
* Add Rails::Railtie.railtie_name method to allow setting custom name for railtiePiotr Sarnacki2010-09-031-0/+7
|
* Move singleton pattern to Railtie and remove Engine::Configurable and ↵Piotr Sarnacki2010-09-031-1/+7
| | | | Application::Configurable in favor of unified Railtie::Configurable
* Removed most of deprecated stuff from Application and EnginePiotr Sarnacki2010-09-031-9/+0
|
* fixing typoNeeraj Singh2010-08-171-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)