Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 2, 2015
  1. @meinac

    Change wrong usage in documentation about autoload_paths [ci skip]

    meinac authored
    We can't use this configuration outside of the application.rb
Commits on Jun 25, 2015
  1. @5t111111
Commits on Mar 18, 2015
  1. @arthurnn

    Add a new-line to the end of route method generated code.

    arthurnn authored
    Fix regression on route method that was added by
    bac812a. The regression was that when
    calling the `route` method, we were not appending a \n anymore.
    [fixes #19316]
Commits on Feb 5, 2015
  1. @pixeltrix

    Force generated route to be inserted

    pixeltrix authored
    Thor isn't very discerning over whether some content is present when passed
    to `inject_into_file`, e.g. a commented out route is detected as being present.
    So to prevent people scratching their heads as to why a route hasn't appeared
    it's better to fall on the side of having duplicate routes.
Commits on Feb 3, 2015
  1. @pixeltrix

    Don't remove all line endings from routes.rb

    pixeltrix authored
    When there is a single scaffold in the routes.rb with no other lines
    then revoking/destroying it will create a routes.rb file with a syntax
    error. This is because the sentinel for the Thor `route` action didn't
    include the newline but the logged route code did.
    The fix is to add the newline to the sentinel and remove it from the
    the logged route code.
    Fixes #15913.
Commits on Jan 10, 2015
  1. @kuldeepaggarwal
Commits on Nov 29, 2014
  1. @sferik
Commits on Oct 18, 2014
  1. @rafaelfranca

    Merge pull request #17302 from claudiob/replace-slower-block-call-wit…

    rafaelfranca authored
    Replace (slower) with (faster) yield
  2. @zzak

    Revert "Replace (slower) with (faster) yield"

    zzak authored
    This reverts commit 0ab075e.
  3. @claudiob @zzak

    Replace (slower) with (faster) yield

    claudiob authored zzak committed
    Performance optimization: `yield` with an implicit `block` is faster than ``.
    See and the following benchmark:
    require 'benchmark/ips'
    def fast
    def slow(&block)
    Benchmark.ips do |x|'fast') { fast{} }'slow') { slow{} }
    # => fast    154095 i/100ms
    # => slow     71454 i/100ms
    # =>
    # => fast  7511067.8 (±5.0%) i/s -   37445085 in   4.999660s
    # => slow  1227576.9 (±6.8%) i/s -    6145044 in   5.028356s
Commits on Aug 27, 2014
  1. @senny
Commits on Aug 2, 2014
  1. @skanev

    Add an after_bundle callback in Rails templates

    skanev authored
    The template runs before the generation of binstubs – this does not
    allow to write one, that makes an initial commit to version control.
    It is solvable by adding an after_bundle callback.
Commits on May 27, 2014
  1. @senny

    Merge pull request #15327 from alexbel/replace_double_quotes_with_sin…

    senny authored
    Replace double quotes with single quotes while adding an entry into Gemfile
Commits on May 26, 2014
  1. @alexbel
Commits on Mar 4, 2014
  1. @sferik
Commits on Dec 26, 2013
  1. @Domon

    Improve font of some code in API documentation [ci skip]

    Domon authored
    * Add "<tt>" or "+" to improve font of some code and filenames in API documentation
    * Does not contain wording changes
Commits on Nov 14, 2013
  1. @dhh

    Revert "Used Yield instead of" -- this causes all of atom_…

    dhh authored
    …feed_helper_test.rb to fail with "SystemStackError: stack level too deep".
    This reverts commit d3a1ce1.
  2. @kuldeepaggarwal
Commits on Apr 30, 2013
  1. @wangjohn

    Removing the app constant and replacing it with Rails.application

    wangjohn authored
    syntax. This helps removing the class level abstraction of an
Commits on Feb 25, 2013
  1. @banyan
Commits on Jan 8, 2013
  1. @carlosantoniodasilva

    Initialize instance variable to remove warning

    carlosantoniodasilva authored
        actions.rb:34: warning: instance variable @in_group not initialized
Commits on Jan 7, 2013
  1. @jeremy

    Introduce ./bin for your app's executables: bin/bundle, bin/rails, bi…

    jeremy authored
    …n/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
Commits on Nov 29, 2012
  1. @rafaelfranca

    Remove observers and sweepers

    rafaelfranca authored
    They was extracted from a plugin.
    [Rafael Mendonça França + Steve Klabnik]
Commits on Oct 14, 2012
  1. @robin850
Commits on Oct 5, 2012
  1. @spastorino

    Revert "Use flat_map { } instead of map {}.flatten"

    spastorino authored
    This reverts commit abf8de8.
    We should take a deeper look to those cases flat_map doesn't do deep
    irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten
    => [1, 3, 1, 2]
    irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i}
    => [[1, 3], [1, 2]]
  2. @spastorino
Commits on May 23, 2012
  1. @vijaydev
Commits on May 22, 2012
  1. @avakhov

    Use new hash syntax for generators gem method

    avakhov authored
    The Gemfile of new application uses ruby 1.9 hashes. Gem method of
    generators should use them too. It prevents from mixing two kinds of
    syntax in one file.
  2. @avakhov

    Remove obsolete comment from generator gem method

    avakhov authored
    This comment about :env option for gem method was actual for rails 2.3
    without bundler. Now bundler uses grups for this goal.
Commits on May 14, 2012
  1. Removing ==Examples and last blank lines of docs from railties

    Francesco Rodriguez authored
Commits on Apr 5, 2012
  1. @vijaydev

    minor fixes [ci skip]

    vijaydev authored
Commits on Apr 4, 2012
  1. @shime
Commits on Apr 1, 2012
  1. @e2
Commits on Jan 30, 2012
  1. @vijaydev

    Fixes #4764 - remove generated new line in routes.rb on scaffold gene…

    vijaydev authored
    As explained in #4764, when destroying a scaffold, routes.rb loses a
    new line. This seems to happen because a new line is added
    while generating the route and the destroy generator removes it.
    However, this causes a problem if the routes file is manually edited
    to remove such new lines. This commit just removes that extra new line
    from added in the first place.
Commits on Jan 7, 2012
  1. @drogus
Something went wrong with that request. Please try again.