Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 11, 2015
  1. @claudiob

    [ci skip] Remove comments about Rails 3.1

    claudiob authored
    Stems from #20105 (comment)
    where @senny said:
    
    > From my point of view, all the docs (guides, API) are version bound.
    > They should describe that version and continue to be available when newer versions are released.
    > The cross referencing can be done by the interested user.
Commits on Apr 22, 2015
  1. @rafaelfranca @pixeltrix
Commits on Apr 12, 2015
Commits on Mar 20, 2015
  1. @eileencodes

    Remove `#build_original_fullpath` method

    eileencodes authored
    Removing `#build_original_fullpath` because it is no longer
    used by the Rails' source code or called in the `#call` method becasue
    the previous commit now uses `fullpath` from Rack.
    
    The method was nodoc'ed so it's safe to remove.
    
    NOTE: I did this as a separate commit so if this does cause a problem
    with engines etc reverting is easy.
  2. @eileencodes

    Use fullpath from Rack request rather than building it

    eileencodes authored
    In Rack, `#fullpath` checks if there is a query string and builds the
    query correctly:
    
    ```
    def path
      script_name + path_info
    end
    
    def fullpath
      query_string.empty? ? path : "#{path}?#{query_string}"
    end
    ```
    
    We can utilize this instead of manually building the fullpath because
    they are the same result. This also reduces allocations in `#call`
    because we don't need `build_original_fullpath` to create the paths and
    query strings. We don't need to build `fullpath` twice.
Commits on Mar 5, 2015
  1. @robin850

    Some documentation edits [ci skip]

    robin850 authored
    * Fix a few typos
    * Wrap some lines around 80 chars
    * Rephrase some statements
Commits on Feb 11, 2015
  1. @robertzk
Commits on Jan 4, 2015
  1. @claudiob @rafaelfranca

    Remove Psych hack for Ruby 1.9

    claudiob authored rafaelfranca committed
    A special `if` statement to support `Psych` for Ruby < 2.0 can be
    dropped now that Rails requires Ruby >= 2.0.
Commits on Dec 23, 2014
  1. @tgxworld
Commits on Nov 10, 2014
  1. @rafaelfranca

    No need to sync config.secret_token and secrets.secret_token

    rafaelfranca authored
    Just prefer secrets over config
  2. @rafaelfranca

    Merge pull request #16535 from bf4/patch-1

    rafaelfranca authored
    Allow fallback to LegacyKeyGenerator when secret_key_base is not set but secrets.secret_token is
Commits on Nov 4, 2014
  1. @tenderlove
Commits on Nov 3, 2014
  1. @bf4

    `secret_token` is now saved in `Rails.application.secrets.secret_token`

    bf4 authored
    - `secrets.secret_token` is now used in all places `config.secret_token` was
      - `secrets.secret_token`, when not present in `config/secrets.yml`,
        now falls back to the value of `config.secret_token`
      - when `secrets.secret_token` is set, it over-writes
        `config.secret_token` so they are the same (for backwards-compatibility)
      - Update docs to reference app.secrets in all places
        - Remove references to `config.secret_token`, `config.secret_key_base`
    - Warn that missing secret_key_base is deprecated
    - Add tests for secret_token, key_generator, and message_verifier
      - the legacy key generator is used with the message verifier when
        secrets.secret_key_base is blank and secret_token is set
      - app.key_generator raises when neither secrets.secret_key_base nor
        secret_token are set
      - app.env_config    raises when neither secrets.secret_key_base nor
        secret_token are set
    - Add changelog
    
    Run focused tests via
    ruby -w -Itest test/application/configuration_test.rb -n '/secret_|key_/'
Commits on Sep 19, 2014
  1. Standardize on `Rails.application` [ci skip]

    Tamir Duberstein authored
    This seems to be the style settled on in most of the templates.
Commits on Sep 3, 2014
  1. @huoxito

    Dont mess with default order engines load

    huoxito authored
    When copying migrations some engines might depend on schema from other
    engine so we can't blindly reverse all railties collection as that would
    affect the order they were originally loaded. This patch helps to only
    apply the order from engines specified in `railties_order`
Commits on Aug 12, 2014
  1. @strzalek

    Add config option for cookies digest

    strzalek authored
    You can now configure custom digest for cookies in the same way as `serializer`:
    
      config.action_dispatch.cookies_digest = 'SHA256'
Commits on Aug 7, 2014
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove

    lazily instantiate application subclasses

    tenderlove authored
    this means we can meaningfully override methods in the subclass
Commits on Jul 15, 2014
  1. @rafaelfranca

    Add Rails::Application#config_for

    rafaelfranca authored
    This is a convenience for loading configuration for the current Rails
    environment.
Commits on May 27, 2014
  1. @arunagw

    rake railties:install:migrations respects the order of railties

    arunagw authored
    This PR fixes #8930 and some stuff from #8985
Commits on Apr 14, 2014
  1. @rafaelfranca

    Make console and generators blocks works at Application instance level

    rafaelfranca authored
    Like rake tasks and runner blocks these blocks should also being shared
    between applications since they are stored at the classes.
    
    Fixes #14748
Commits on Apr 7, 2014
  1. @rafaelfranca
  2. @carlosantoniodasilva
Commits on Apr 4, 2014
  1. @matthewd

    Ensure we supply Kernel#y for 1.9 too

    matthewd authored
    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.
Commits on Feb 13, 2014
  1. @guilleiguaran

    Merge pull request #13945 from rails/json_cookie_serializer_improvements

    guilleiguaran authored
    Cookies serializer improvements
Commits on Feb 12, 2014
  1. @senny
Commits on Feb 11, 2014
  1. @chancancode
Commits on Jan 29, 2014
  1. @lukesarnacki

    Allow session serializer key in config.session_store

    lukesarnacki authored
    MessageEncryptor has :serializer option, where any serializer object can
    be passed. This commit make it possible to set this serializer from configuration
    level.
    
    There are predefined serializers (:marshal_serializer, :json_serialzier)
    and custom serializer can be passed as String, Symbol (camelized and
    constantized in ActionDispatch::Session namepspace) or serializer object.
    
    Default :json_serializer was also added to generators to provide secure
    defalt.
Commits on Dec 24, 2013
  1. @schneems

    Better missing `secret_key_base` error message

    schneems authored
    Previously the error was:
    
    ```
    RuntimeError: You must set secret_key_base in your app's config
    ```
    
    Will now be:
    
    
    ```
    RuntimeError: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`
    ```
Commits on Dec 19, 2013
  1. @rafaelfranca
  2. @rafaelfranca
Commits on Dec 12, 2013
  1. @guilleiguaran
  2. @guilleiguaran
Commits on Dec 5, 2013
  1. @rafaelfranca
Something went wrong with that request. Please try again.