Commit Graph

10192 Commits

Author SHA1 Message Date
Rafael Mendonça França
900758145d Remove some warnings 2015-01-03 17:17:47 -03:00
Robin Dupret
1fd44213aa Remove the tmp/sessions folder and its clear task
Commit 1aea470 introduced this directory but this was at a time when the
default way to store sessions was on the file system under the tmp
directory.

Let's remove references to it from the documentation as well.

[Robin Dupret & yui-knk]
2015-01-03 19:42:07 +01:00
Vijay Dev
4b9dba99d6 Merge branch 'master' of github.com:rails/docrails 2015-01-03 14:58:17 +00:00
Rafael Mendonça França
a699f5d3e1 Merge pull request #18309 from PaBLoX-CL/fix-fixtures-references
Generated fixtures won't use parent_id when generated with
parent:references
2015-01-02 23:02:53 -03:00
Pablo Olmos de Aguilera Corradini
9405ecdd98 Generated fixtures won't use parent_id when generated with parent:references
Fix #18301
2015-01-02 23:01:24 -03:00
Carlos Antonio da Silva
b63382ec06 Remove warnings
warning: ambiguous first argument; put parentheses or a space even after
    `/' operator'`
2015-01-02 10:29:57 -02:00
Carlos Antonio da Silva
120bf7444f Verify the helper name with plural as it is generated
Thanks @robin850.
2015-01-02 10:29:36 -02:00
claudiob
b6f50b3fa8 Add --skip-action-mailer (or -M) to rails generate 2015-01-01 18:46:12 -08:00
Rafael Mendonça França
4ba0e2fc22 Fix scaffold generator with --helper=false option 2015-01-01 23:16:30 -03:00
Rafael Mendonça França
ac0a8eec62 Fix test description to match the test behaviour 2015-01-01 22:44:30 -03:00
Arun Agrawal
4de18d0ead Update copyright notices to 2015 [ci skip] 2014-12-31 08:34:14 +01:00
Prathamesh Sonpatki
3f9598d491 Fix description for application_name method - change simple to simply
[ci skip]
2014-12-30 22:30:04 +05:30
Rafael Mendonça França
d233220f29 Merge pull request #18240 from shunsukeaida/add_tzinfo_data_to_plugin_gemfile
plugin's gemfile also needs tzinfo-data in Windows
2014-12-29 16:12:19 -03:00
Rafael Mendonça França
156c657731 Remove some warning with Ruby 2.2 2014-12-29 16:09:59 -03:00
ShunsukeAida
31f3167be0 plugin's gemfile also needs tzinfo-data in Windows 2014-12-30 01:57:29 +09:00
Guillermo Iguaran
edaab4dbe8 Merge pull request #18209 from claudiob/bump-to-2-2
Require Ruby 2.2 for Rails 5.0
2014-12-28 16:39:39 -05:00
Alex Robbin
4e0ec961e1 actually autoload all second-level directories called app/*/concerns 2014-12-26 23:21:20 -05:00
claudiob
d3b098b828 Require Ruby 2.2 for Rails 5.0
Stems from [this comment](https://github.com/rails/rails/pull/18203#issuecomment-68138096) by @robin850
and by the blog post http://weblog.rubyonrails.org/2014/12/19/Rails-4-2-final
2014-12-26 13:53:09 +01:00
Vipul A M
1faa00c9ec - Changed paths to routing_paths to avoid warning possible reference to past scope 2014-12-26 10:38:00 +05:30
Kenta Okamoto
9b67735de9 Remove unnecessary double space 2014-12-26 13:27:23 +09:00
Sean Griffin
a0e34619b8 Merge pull request #18170 from tgxworld/add_docs_for_rails_application_secrets
[ci skip]
2014-12-23 09:44:12 -07:00
Guo Xiang Tan
2f7b72b793 Rails::Application#secrets should be documented. 2014-12-24 00:32:31 +08:00
Sean Griffin
b7d7e0b15e Add test missed by a03ea684efc3505647cf0327a501aa2dbb591ad2 2014-12-22 14:05:35 -07:00
Sean Griffin
a03ea684ef Use the new foreign_key option on references in generators
Changes `rails g model Post user:references` from

    def change
      create_table :posts do |t|
        t.references :user, index: true
      end

      add_foreign_key :posts, :users
    end

to

    def change
      create_table :posts do |t|
        t.references :user, index: true, foreign_key: true
      end
    end

Changes `rails g migration add_user_to_posts user:references` from

    def change
      add_reference :posts, :users, index: true
      add_foreign_key :posts, :users
    end

to

    def change
      add_reference :posts, :users, index: true, foreign_key: true
    end
2014-12-22 13:47:11 -07:00
Sean Griffin
9fff631a06 Skip byebug on all non-MRI rubies, fix tests
The changes in #18149 added tests for the app generator, but only fixed
it for the plugin generator (I should have let CI finish though I think
it would have failed as an allowed failure).
2014-12-22 13:43:58 -07:00
Arthur Neves
0bb73f03e4
Only add debugger/byebug if on MRI 2014-12-22 15:27:56 -05:00
rochefort
2114e6bf29 Fix typo in nodoc 2014-12-22 17:14:58 +09:00
claudiob
a770d7e404 Add docs for Rails.env and Rails.env=
[ci skip]
2014-12-22 03:44:37 +01:00
Xavier Noria
83bbc2352c prefer single quotes, by the beard of the prophet! 2014-12-20 00:51:30 +01:00
Tim Pope
1ae88b84a6 Make bin/setup portable 2014-12-19 18:36:53 -05:00
Godfrey Chan
2d04bdd86f Merge pull request #18100 from chancancode/serve_static_files
Allow static asset serving from env variable (enhanced!)
Conflicts:
	railties/CHANGELOG.md
2014-12-19 14:55:34 -08:00
Yves Senn
36ce0c2c82 db:structure:load and db:schema:load no longer purge the database.
Closes #17945

`db:test:prepare` still purges the database to always keep the test
database in a consistent state.

This patch introduces new problems with `db:schema:load`. Prior
to the introduction of foreign-keys, we could run this file against
a non-empty database. Since every `create_table` containted the
`force: true` option, this would recreate tables when loading the schema.

However with foreign-keys in place, `force: true` wont work anymore and
the task will crash.

/cc @schneems
2014-12-18 10:08:17 +01:00
Rafael Mendonça França
efbbb30534 Merge pull request #18049 from yuki3738/fix_rails_db_command_error
Add a code checking about file or not to the rails db command
2014-12-16 15:12:21 -02:00
George Millo
d75773ada0 English fix [ci skip] 2014-12-16 14:32:06 +00:00
yuki3738
17bb531f82 Add a code checking about file or not to the rails db command 2014-12-16 19:28:00 +09:00
NorimasaAndo
8493f44976 Fix Duplicate web-console entries in Gemfile 2014-12-14 21:25:26 +09:00
Rafael Mendonça França
83534e5678 New applications should use sass-rails 5.0 2014-12-12 20:48:44 -02:00
Rafael Mendonça França
193ec360b1 Rails master requires arel master 2014-12-12 18:49:45 -02:00
Godfrey Chan
46617f02c6 Align the GemfileEntry API with stable branches
See 63462ec
2014-12-12 11:23:17 -08:00
yui-knk
083505a7d6 [ci skip] Fix typo 2014-12-09 13:02:03 +09:00
Rafael Mendonça França
c8284c8025 Merge pull request #17896 from GBH/globbing_route_mailer_preview
fixing mailer previews for apps with globbing route
2014-12-08 15:10:47 -02:00
Rafael Mendonça França
78504600f5 Merge pull request #17953 from kirs/test-activejob-generator
Test coverage for ActiveJob generator
2014-12-08 14:31:37 -02:00
Kir Shatrov
1bf42df031 Test coverage for ActiveJob generator 2014-12-07 08:29:12 +03:00
Sam Ruby
8275b65987 Use latest web-console when using --dev or --edge
Fixes:

http://intertwingly.net/projects/AWDwR4/checkdepot-215/makedepot.log
2014-12-05 11:18:18 -05:00
Rafael Mendonça França
da13b9aedc Merge pull request #17797 from y-yagi/donot_delete_mailer_layouts
Don't remove mailer layouts files
2014-12-04 18:29:50 -02:00
Oleg
ccc3ddb776 fixing mailer previews for apps with globbing route 2014-12-03 10:43:12 -05:00
Prathamesh Sonpatki
05a6fafdd5 Removed use of mocha in the info_controller tests 2014-12-03 10:06:02 +05:30
Melissa Xie
3b43d1d822 Fix "nonexistent" typo in tests 2014-12-02 19:19:10 -05:00
Akira Matsuda
ae54cb29d4 require 'rake' before requiring Rake tasks
Without this,
% rails r "require 'rails/tasks'"
would cause a NoMethodError: undefined method `desc' for main:Object
2014-12-03 06:28:09 +09:00
Guo Xiang Tan
106db0b419 Silence Minitest for plugin tests.
Fixes https://github.com/rails/rails/issues/17340.

Use Minitest::BacktraceFilter instead of removing all silencers. This
will allow the backtrace for all libraries in the plugin to be shown
while removing noise generated by Minitest's backtrace.
2014-12-02 18:47:03 +08:00