├── RAILS_VERSION
├── railties
├── .gitignore
├── lib
│ └── rails
│ │ ├── generators
│ │ ├── rails
│ │ │ ├── app
│ │ │ │ └── templates
│ │ │ │ │ ├── public
│ │ │ │ │ ├── favicon.ico
│ │ │ │ │ ├── stylesheets
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── images
│ │ │ │ │ │ └── rails.png
│ │ │ │ │ ├── javascripts
│ │ │ │ │ │ └── application.js
│ │ │ │ │ └── robots.txt
│ │ │ │ │ ├── app
│ │ │ │ │ ├── mailers
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── models
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── helpers
│ │ │ │ │ │ └── application_helper.rb
│ │ │ │ │ ├── controllers
│ │ │ │ │ │ └── application_controller.rb
│ │ │ │ │ └── views
│ │ │ │ │ │ └── layouts
│ │ │ │ │ │ └── application.html.erb.tt
│ │ │ │ │ ├── test
│ │ │ │ │ ├── unit
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── fixtures
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── functional
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── integration
│ │ │ │ │ │ └── .empty_directory
│ │ │ │ │ └── performance
│ │ │ │ │ │ └── browsing_test.rb
│ │ │ │ │ ├── gitignore
│ │ │ │ │ ├── config.ru
│ │ │ │ │ ├── config
│ │ │ │ │ ├── environment.rb
│ │ │ │ │ ├── initializers
│ │ │ │ │ │ └── mime_types.rb
│ │ │ │ │ └── locales
│ │ │ │ │ │ └── en.yml
│ │ │ │ │ ├── doc
│ │ │ │ │ └── README_FOR_APP
│ │ │ │ │ ├── Rakefile
│ │ │ │ │ └── script
│ │ │ │ │ └── rails
│ │ │ ├── generator
│ │ │ │ └── templates
│ │ │ │ │ ├── templates
│ │ │ │ │ └── .empty_directory
│ │ │ │ │ ├── %file_name%_generator.rb.tt
│ │ │ │ │ └── USAGE.tt
│ │ │ ├── plugin
│ │ │ │ └── templates
│ │ │ │ │ ├── init.rb
│ │ │ │ │ ├── install.rb
│ │ │ │ │ ├── lib
│ │ │ │ │ ├── %file_name%.rb.tt
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── %file_name%_tasks.rake.tt
│ │ │ │ │ ├── uninstall.rb
│ │ │ │ │ └── README.tt
│ │ │ ├── plugin_new
│ │ │ │ └── templates
│ │ │ │ │ ├── config
│ │ │ │ │ └── routes.rb
│ │ │ │ │ ├── README.rdoc
│ │ │ │ │ ├── gitignore
│ │ │ │ │ ├── app
│ │ │ │ │ ├── helpers
│ │ │ │ │ │ └── %name%
│ │ │ │ │ │ │ └── application_helper.rb.tt
│ │ │ │ │ └── controllers
│ │ │ │ │ │ └── %name%
│ │ │ │ │ │ └── application_controller.rb.tt
│ │ │ │ │ ├── rails
│ │ │ │ │ ├── routes.rb
│ │ │ │ │ └── boot.rb
│ │ │ │ │ ├── lib
│ │ │ │ │ ├── %name%.rb
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ └── %name%_tasks.rake
│ │ │ │ │ └── %name%
│ │ │ │ │ │ └── engine.rb
│ │ │ │ │ ├── test
│ │ │ │ │ ├── %name%_test.rb
│ │ │ │ │ └── integration
│ │ │ │ │ │ └── navigation_test.rb
│ │ │ │ │ ├── Gemfile
│ │ │ │ │ └── script
│ │ │ │ │ └── rails.tt
│ │ │ ├── helper
│ │ │ │ └── templates
│ │ │ │ │ └── helper.rb
│ │ │ ├── stylesheets
│ │ │ │ ├── USAGE
│ │ │ │ └── stylesheets_generator.rb
│ │ │ ├── observer
│ │ │ │ └── observer_generator.rb
│ │ │ ├── integration_test
│ │ │ │ └── integration_test_generator.rb
│ │ │ ├── performance_test
│ │ │ │ └── performance_test_generator.rb
│ │ │ ├── controller
│ │ │ │ └── templates
│ │ │ │ │ └── controller.rb
│ │ │ ├── model
│ │ │ │ └── model_generator.rb
│ │ │ ├── migration
│ │ │ │ └── migration_generator.rb
│ │ │ └── session_migration
│ │ │ │ └── session_migration_generator.rb
│ │ ├── test_unit
│ │ │ ├── plugin
│ │ │ │ ├── templates
│ │ │ │ │ ├── test_helper.rb
│ │ │ │ │ └── %file_name%_test.rb.tt
│ │ │ │ └── plugin_generator.rb
│ │ │ ├── helper
│ │ │ │ └── templates
│ │ │ │ │ └── helper_test.rb
│ │ │ ├── integration
│ │ │ │ └── templates
│ │ │ │ │ └── integration_test.rb
│ │ │ ├── model
│ │ │ │ └── templates
│ │ │ │ │ └── unit_test.rb
│ │ │ ├── performance
│ │ │ │ └── templates
│ │ │ │ │ └── performance_test.rb
│ │ │ └── observer
│ │ │ │ └── templates
│ │ │ │ └── unit_test.rb
│ │ ├── erb
│ │ │ ├── controller
│ │ │ │ └── templates
│ │ │ │ │ └── view.html.erb
│ │ │ ├── mailer
│ │ │ │ ├── templates
│ │ │ │ │ └── view.text.erb
│ │ │ │ └── mailer_generator.rb
│ │ │ └── scaffold
│ │ │ │ └── templates
│ │ │ │ ├── new.html.erb
│ │ │ │ └── edit.html.erb
│ │ └── test_unit.rb
│ │ ├── console
│ │ ├── helpers.rb
│ │ └── sandbox.rb
│ │ ├── performance_test_help.rb
│ │ ├── rack
│ │ └── static.rb
│ │ ├── version.rb
│ │ ├── rack.rb
│ │ ├── tasks
│ │ ├── log.rake
│ │ └── middleware.rake
│ │ ├── commands
│ │ ├── update.rb
│ │ ├── plugin_new.rb
│ │ ├── destroy.rb
│ │ └── generate.rb
│ │ ├── all.rb
│ │ └── tasks.rb
├── test
│ └── fixtures
│ │ ├── lib
│ │ ├── template.rb
│ │ ├── app_builders
│ │ │ ├── empty_builder.rb
│ │ │ ├── simple_builder.rb
│ │ │ └── tweak_builder.rb
│ │ ├── generators
│ │ │ ├── model_generator.rb
│ │ │ ├── fixjour_generator.rb
│ │ │ ├── wrong_generator.rb
│ │ │ └── active_record
│ │ │ │ └── fixjour_generator.rb
│ │ ├── create_test_dummy_template.rb
│ │ ├── plugin_builders
│ │ │ ├── empty_builder.rb
│ │ │ ├── simple_builder.rb
│ │ │ └── tweak_builder.rb
│ │ └── rails
│ │ │ └── generators
│ │ │ └── foobar
│ │ │ └── foobar_generator.rb
│ │ └── about_yml_plugins
│ │ ├── bad_about_yml
│ │ ├── init.rb
│ │ └── about.yml
│ │ └── plugin_without_about_yml
│ │ └── init.rb
└── guides
│ └── assets
│ ├── images
│ ├── csrf.png
│ ├── fxn.png
│ ├── bullet.gif
│ ├── habtm.png
│ ├── has_one.png
│ ├── tab_red.gif
│ ├── book_icon.gif
│ ├── challenge.png
│ ├── has_many.png
│ ├── icons
│ │ ├── tip.png
│ │ ├── up.png
│ │ ├── home.png
│ │ ├── next.png
│ │ ├── note.png
│ │ ├── prev.png
│ │ ├── caution.png
│ │ ├── example.png
│ │ ├── warning.png
│ │ ├── callouts
│ │ │ ├── 1.png
│ │ │ ├── 10.png
│ │ │ ├── 11.png
│ │ │ ├── 12.png
│ │ │ ├── 13.png
│ │ │ ├── 14.png
│ │ │ ├── 15.png
│ │ │ ├── 2.png
│ │ │ ├── 3.png
│ │ │ ├── 4.png
│ │ │ ├── 5.png
│ │ │ ├── 6.png
│ │ │ ├── 7.png
│ │ │ ├── 8.png
│ │ │ └── 9.png
│ │ ├── important.png
│ │ └── README
│ ├── nav_arrow.gif
│ ├── tab_grey.gif
│ ├── tab_info.gif
│ ├── tab_note.gif
│ ├── belongs_to.png
│ ├── check_bullet.gif
│ ├── edge_badge.png
│ ├── feature_tile.gif
│ ├── footer_tile.gif
│ ├── grey_bullet.gif
│ ├── header_tile.gif
│ ├── jaimeiniesta.jpg
│ ├── polymorphic.png
│ ├── posts_index.png
│ ├── tab_yellow.gif
│ ├── tab_yellow.png
│ ├── chapters_icon.gif
│ ├── error_messages.png
│ ├── rails_welcome.png
│ ├── credits_pic_blank.gif
│ ├── has_many_through.png
│ ├── has_one_through.png
│ ├── header_backdrop.png
│ ├── rails_guides_logo.gif
│ ├── rails_logo_remix.gif
│ ├── session_fixation.png
│ ├── i18n
│ │ ├── demo_untranslated.png
│ │ ├── demo_translated_en.png
│ │ ├── demo_localized_pirate.png
│ │ ├── demo_translated_pirate.png
│ │ └── demo_translation_missing.png
│ ├── customized_error_messages.png
│ └── validation_error_messages.png
│ └── javascripts
│ └── guides.js
├── actionpack
├── test
│ ├── tmp
│ │ └── .gitignore
│ ├── fixtures
│ │ ├── hello.html
│ │ ├── shared.html.erb
│ │ ├── test
│ │ │ ├── _two.html.erb
│ │ │ ├── _hello.builder
│ │ │ ├── _partial.erb
│ │ │ ├── _partial.js.erb
│ │ │ ├── hello_world.erb
│ │ │ ├── _partial.html.erb
│ │ │ ├── _partial_only.erb
│ │ │ ├── dont_pick_me
│ │ │ ├── hello_world.da.html.erb
│ │ │ ├── hello_world.erb~
│ │ │ ├── hyphen-ated.erb
│ │ │ ├── template.erb
│ │ │ ├── _form.erb
│ │ │ ├── _raise.html.erb
│ │ │ ├── hello_world.pt-BR.html.erb
│ │ │ ├── proper_block_detection.erb
│ │ │ ├── _counter.html.erb
│ │ │ ├── _from_helper.erb
│ │ │ ├── _utf8_partial.html.erb
│ │ │ ├── basic.html.erb
│ │ │ ├── formatted_xml_erb.builder
│ │ │ ├── greeting.html.erb
│ │ │ ├── greeting.xml.erb
│ │ │ ├── malformed
│ │ │ │ ├── malformed.erb~
│ │ │ │ ├── malformed.en.html.erb~
│ │ │ │ └── malformed.html.erb~
│ │ │ ├── formatted_html_erb.html.erb
│ │ │ ├── hello_world_with_layout_false.erb
│ │ │ ├── _object_inspector.erb
│ │ │ ├── greeting.js.rjs
│ │ │ ├── _labelling_form.erb
│ │ │ ├── _one.html.erb
│ │ │ ├── implicit_content_type.atom.builder
│ │ │ ├── render_file_with_ivar.erb
│ │ │ ├── _customer.erb
│ │ │ ├── _person.erb
│ │ │ ├── formatted_xml_erb.xml.erb
│ │ │ ├── render_file_from_template.html.erb
│ │ │ ├── render_file_with_locals.erb
│ │ │ ├── render_file_with_locals_and_default.erb
│ │ │ ├── _customer_counter_with_as.erb
│ │ │ ├── _customer_greeting.erb
│ │ │ ├── _hash_greeting.erb
│ │ │ ├── _partial_for_use_in_layout.html.erb
│ │ │ ├── formatted_xml_erb.html.erb
│ │ │ ├── render_implicit_html_template_from_xhr_request.html.erb
│ │ │ ├── render_implicit_js_template_without_layout.js.erb
│ │ │ ├── render_to_string_test.erb
│ │ │ ├── sub_template_raise.html.erb
│ │ │ ├── _partial_with_only_html_version.html.erb
│ │ │ ├── dot.directory
│ │ │ │ └── render_file_with_ivar.erb
│ │ │ ├── hello_world_from_rxml.builder
│ │ │ ├── render_implicit_html_template_from_xhr_request.da.html.erb
│ │ │ ├── _layout_for_partial.html.erb
│ │ │ ├── _utf8_partial_magic.html.erb
│ │ │ ├── _customer_counter.erb
│ │ │ ├── _partial_with_partial.erb
│ │ │ ├── _customer_with_var.erb
│ │ │ ├── _layout_for_block_with_args.html.erb
│ │ │ ├── _local_inspector.html.erb
│ │ │ ├── action_talk_to_layout.erb
│ │ │ ├── capturing.erb
│ │ │ ├── content_for.erb
│ │ │ ├── _hash_object.erb
│ │ │ ├── render_implicit_html_template.js.rjs
│ │ │ ├── content_for_with_parameter.erb
│ │ │ ├── delete_with_js.rjs
│ │ │ ├── render_explicit_html_template.js.rjs
│ │ │ ├── hello.builder
│ │ │ ├── hello_world_container.builder
│ │ │ ├── layout_render_file.erb
│ │ │ ├── layout_render_object.erb
│ │ │ ├── content_for_concatenated.erb
│ │ │ ├── list.erb
│ │ │ ├── non_erb_block_content_for.builder
│ │ │ ├── using_layout_around_block.html.erb
│ │ │ ├── calling_partial_with_layout.html.erb
│ │ │ ├── utf8.html.erb
│ │ │ ├── _partial_with_layout.erb
│ │ │ ├── nested_layout.erb
│ │ │ ├── potential_conflicts.erb
│ │ │ ├── deprecated_nested_layout.erb
│ │ │ ├── utf8_magic.html.erb
│ │ │ ├── _partial_with_layout_block_content.erb
│ │ │ ├── _partial_with_layout_block_partial.erb
│ │ │ ├── utf8_magic_with_bare_partial.html.erb
│ │ │ ├── hello_xml_world.builder
│ │ │ └── enum_rjs_test.rjs
│ │ ├── multipart
│ │ │ ├── hello.txt
│ │ │ ├── binary_file
│ │ │ ├── mixed_files
│ │ │ ├── bracketed_param
│ │ │ ├── mona_lisa.jpg
│ │ │ ├── single_parameter
│ │ │ ├── none
│ │ │ ├── empty
│ │ │ └── text_file
│ │ ├── public
│ │ │ ├── index.html
│ │ │ ├── .gitignore
│ │ │ ├── foo
│ │ │ │ ├── bar.html
│ │ │ │ └── index.html
│ │ │ ├── 404.html
│ │ │ ├── 500.html
│ │ │ ├── elsewhere
│ │ │ │ ├── cools.js
│ │ │ │ └── file.css
│ │ │ ├── javascripts
│ │ │ │ ├── bank.js
│ │ │ │ ├── effects.js
│ │ │ │ ├── robber.js
│ │ │ │ ├── controls.js
│ │ │ │ ├── dragdrop.js
│ │ │ │ ├── prototype.js
│ │ │ │ ├── application.js
│ │ │ │ ├── subdir
│ │ │ │ │ └── subdir.js
│ │ │ │ ├── version.1.0.js
│ │ │ │ └── common.javascript
│ │ │ ├── stylesheets
│ │ │ │ ├── bank.css
│ │ │ │ ├── robber.css
│ │ │ │ ├── random.styles
│ │ │ │ ├── subdir
│ │ │ │ │ └── subdir.css
│ │ │ │ └── version.1.0.css
│ │ │ ├── 500.da.html
│ │ │ └── images
│ │ │ │ └── rails.png
│ │ ├── layout_tests
│ │ │ ├── alt
│ │ │ │ ├── layouts
│ │ │ │ │ └── alt.erb
│ │ │ │ └── hello.erb
│ │ │ ├── views
│ │ │ │ ├── hello.erb
│ │ │ │ └── goodbye.erb
│ │ │ └── layouts
│ │ │ │ ├── item.erb
│ │ │ │ ├── symlinked
│ │ │ │ ├── layout_test.erb
│ │ │ │ ├── third_party_template_library.mab
│ │ │ │ ├── controller_name_space
│ │ │ │ └── nested.erb
│ │ │ │ └── multiple_extensions.html.erb
│ │ ├── blog_public
│ │ │ ├── .gitignore
│ │ │ ├── blog.html
│ │ │ ├── index.html
│ │ │ └── subdir
│ │ │ │ └── index.html
│ │ ├── fun
│ │ │ ├── games
│ │ │ │ ├── _game.erb
│ │ │ │ ├── _form.erb
│ │ │ │ └── hello_world.erb
│ │ │ └── serious
│ │ │ │ └── games
│ │ │ │ └── _game.erb
│ │ ├── replies
│ │ │ └── _reply.erb
│ │ ├── layouts
│ │ │ ├── _yield_only.erb
│ │ │ ├── xhr.html.erb
│ │ │ ├── _yield_with_params.erb
│ │ │ ├── builder.builder
│ │ │ ├── yield.erb
│ │ │ ├── standard.html.erb
│ │ │ ├── _customers.erb
│ │ │ ├── _partial_and_yield.erb
│ │ │ ├── talk_from_action.erb
│ │ │ ├── yield_with_render_inline_inside.erb
│ │ │ ├── _column.html.erb
│ │ │ ├── yield_with_render_partial_inside.erb
│ │ │ ├── partial_with_layout.erb
│ │ │ └── block_with_layout.erb
│ │ ├── localized
│ │ │ ├── hello_world.de.html
│ │ │ └── hello_world.en.html
│ │ ├── mascots
│ │ │ └── _mascot.html.erb
│ │ ├── post_test
│ │ │ ├── post
│ │ │ │ ├── index.html.erb
│ │ │ │ └── index.iphone.erb
│ │ │ ├── super_post
│ │ │ │ ├── index.html.erb
│ │ │ │ └── index.iphone.erb
│ │ │ └── layouts
│ │ │ │ ├── post.html.erb
│ │ │ │ └── super_post.iphone.erb
│ │ ├── projects
│ │ │ └── _project.erb
│ │ ├── respond_with
│ │ │ ├── edit.html.erb
│ │ │ ├── new.html.erb
│ │ │ ├── using_resource_with_block.html.erb
│ │ │ └── using_resource.js.rjs
│ │ ├── topics
│ │ │ └── _topic.html.erb
│ │ ├── _top_level_partial_only.erb
│ │ ├── developers
│ │ │ └── _developer.erb
│ │ ├── respond_to
│ │ │ ├── using_defaults.html.erb
│ │ │ ├── using_defaults.xml.builder
│ │ │ ├── using_defaults_with_type_list.html.erb
│ │ │ ├── custom_constant_handling_without_block.mobile.erb
│ │ │ ├── using_defaults.js.rjs
│ │ │ ├── all_types_with_layout.html.erb
│ │ │ ├── using_defaults_with_type_list.xml.builder
│ │ │ ├── all_types_with_layout.js.rjs
│ │ │ ├── iphone_with_html_response_type.html.erb
│ │ │ ├── layouts
│ │ │ │ ├── standard.html.erb
│ │ │ │ ├── standard.iphone.erb
│ │ │ │ └── missing.html.erb
│ │ │ ├── using_defaults_with_type_list.js.rjs
│ │ │ └── iphone_with_html_response_type.iphone.erb
│ │ ├── scope
│ │ │ └── test
│ │ │ │ └── modgreet.erb
│ │ ├── _top_level_partial.html.erb
│ │ ├── addresses
│ │ │ └── list.erb
│ │ ├── happy_path
│ │ │ └── render_action
│ │ │ │ └── hello_world.erb
│ │ ├── override
│ │ │ └── test
│ │ │ │ └── hello_world.erb
│ │ ├── override2
│ │ │ └── layouts
│ │ │ │ └── test
│ │ │ │ └── sub.erb
│ │ ├── quiz
│ │ │ └── questions
│ │ │ │ └── _question.html.erb
│ │ ├── translations
│ │ │ └── templates
│ │ │ │ ├── found.erb
│ │ │ │ ├── array.erb
│ │ │ │ └── missing.erb
│ │ ├── customers
│ │ │ └── _customer.html.erb
│ │ ├── old_content_type
│ │ │ ├── render_default_for_erb.erb
│ │ │ ├── render_default_for_rjs.rjs
│ │ │ ├── render_default_for_builder.builder
│ │ │ └── render_default_content_types_for_respond_to.xml.erb
│ │ ├── star_star_mime
│ │ │ └── index.js.erb
│ │ ├── mascot.rb
│ │ ├── helpers
│ │ │ ├── just_me_helper.rb
│ │ │ ├── me_too_helper.rb
│ │ │ ├── fun
│ │ │ │ ├── pdf_helper.rb
│ │ │ │ └── games_helper.rb
│ │ │ ├── helpery_test_helper.rb
│ │ │ └── abc_helper.rb
│ │ ├── mascots.yml
│ │ ├── alternate_helpers
│ │ │ └── foo_helper.rb
│ │ ├── symlink_parent
│ │ │ └── symlinked_layout.erb
│ │ ├── functional_caching
│ │ │ ├── html_fragment_cached_with_partial.html.erb
│ │ │ ├── _partial.erb
│ │ │ ├── fragment_cached.html.erb
│ │ │ ├── js_fragment_cached_with_partial.js.rjs
│ │ │ ├── formatted_fragment_cached.html.erb
│ │ │ ├── formatted_fragment_cached.xml.builder
│ │ │ ├── inline_fragment_cached.html.erb
│ │ │ └── formatted_fragment_cached.js.rjs
│ │ ├── topic.rb
│ │ ├── bad_customers
│ │ │ └── _bad_customer.html.erb
│ │ ├── project.rb
│ │ ├── good_customers
│ │ │ └── _good_customer.html.erb
│ │ ├── projects.yml
│ │ ├── reply.rb
│ │ ├── developer.rb
│ │ ├── session_autoload_test
│ │ │ └── session_autoload_test
│ │ │ │ └── foo.rb
│ │ ├── company.rb
│ │ ├── developers_projects.yml
│ │ └── replies.yml
│ ├── abstract
│ │ └── views
│ │ │ ├── index.erb
│ │ │ ├── naked_render.erb
│ │ │ ├── action_with_ivars.erb
│ │ │ ├── layouts
│ │ │ ├── application.erb
│ │ │ └── abstract_controller
│ │ │ │ └── testing
│ │ │ │ └── me4.erb
│ │ │ ├── abstract_controller
│ │ │ └── testing
│ │ │ │ ├── me3
│ │ │ │ ├── index.erb
│ │ │ │ └── formatted.html.erb
│ │ │ │ ├── me4
│ │ │ │ └── index.erb
│ │ │ │ └── me5
│ │ │ │ └── index.erb
│ │ │ └── helper_test.erb
│ ├── controller
│ │ ├── controller_fixtures
│ │ │ ├── app
│ │ │ │ └── controllers
│ │ │ │ │ ├── user_controller.rb
│ │ │ │ │ └── admin
│ │ │ │ │ └── user_controller.rb
│ │ │ └── vendor
│ │ │ │ └── plugins
│ │ │ │ └── bad_plugin
│ │ │ │ └── lib
│ │ │ │ └── plugin_controller.rb
│ │ └── new_base
│ │ │ └── render_xml_test.rb
│ └── lib
│ │ └── testing_sandbox.rb
└── lib
│ ├── action_controller
│ ├── deprecated
│ │ ├── performance_test.rb
│ │ └── integration_test.rb
│ ├── metal
│ │ ├── session_management.rb
│ │ └── cookies.rb
│ ├── vendor
│ │ └── html-scanner
│ │ │ └── html
│ │ │ └── version.rb
│ └── deprecated.rb
│ ├── action_dispatch
│ └── middleware
│ │ └── templates
│ │ └── rescues
│ │ ├── unknown_action.erb
│ │ └── missing_template.erb
│ ├── action_pack
│ └── version.rb
│ └── abstract_controller
│ ├── asset_paths.rb
│ ├── translation.rb
│ └── logger.rb
├── activerecord
├── test
│ ├── fixtures
│ │ ├── all
│ │ │ ├── people.csv
│ │ │ ├── tasks.yml
│ │ │ └── developers.yml
│ │ ├── .gitignore
│ │ ├── naked
│ │ │ ├── csv
│ │ │ │ └── accounts.csv
│ │ │ └── yml
│ │ │ │ ├── accounts.yml
│ │ │ │ ├── courses.yml
│ │ │ │ └── companies.yml
│ │ ├── fk_test_has_pk.yml
│ │ ├── minimalistics.yml
│ │ ├── admin
│ │ │ ├── accounts.yml
│ │ │ └── users.yml
│ │ ├── fk_test_has_fk.yml
│ │ ├── items.yml
│ │ ├── warehouse-things.yml
│ │ ├── collections.yml
│ │ ├── legacy_things.yml
│ │ ├── toys.yml
│ │ ├── dashboards.yml
│ │ ├── men.yml
│ │ ├── variants.yml
│ │ ├── products.yml
│ │ ├── reserved_words
│ │ │ ├── distinct.yml
│ │ │ ├── select.yml
│ │ │ ├── values.yml
│ │ │ ├── group.yml
│ │ │ └── distincts_selects.yml
│ │ ├── author_favorites.yml
│ │ ├── computers.yml
│ │ ├── author_addresses.yml
│ │ ├── tags.yml
│ │ ├── vertices.yml
│ │ ├── organizations.yml
│ │ ├── speedometers.yml
│ │ ├── ships.yml
│ │ ├── zines.yml
│ │ ├── jobs.yml
│ │ ├── member_types.yml
│ │ ├── minivans.yml
│ │ ├── courses.yml
│ │ ├── mixed_case_monkeys.yml
│ │ ├── movies.yml
│ │ ├── owners.yml
│ │ ├── edges.yml
│ │ ├── books.yml
│ │ ├── projects.yml
│ │ ├── cars.yml
│ │ ├── members.yml
│ │ ├── subscribers.yml
│ │ ├── readers.yml
│ │ ├── authors.yml
│ │ ├── mateys.yml
│ │ ├── price_estimates.yml
│ │ ├── categories
│ │ │ ├── subsubdir
│ │ │ │ └── arbitrary_filename.yml
│ │ │ └── special_categories.yml
│ │ ├── clubs.yml
│ │ ├── categories_ordered.yml
│ │ ├── funny_jokes.yml
│ │ ├── treasures.yml
│ │ ├── pets.yml
│ │ ├── entrants.yml
│ │ ├── tasks.yml
│ │ ├── faces.yml
│ │ ├── pirates.yml
│ │ ├── categories.yml
│ │ ├── subscriptions.yml
│ │ ├── parrots_pirates.yml
│ │ ├── references.yml
│ │ ├── categorizations.yml
│ │ └── sponsors.yml
│ ├── migrations
│ │ ├── empty
│ │ │ └── .gitkeep
│ │ ├── duplicate
│ │ │ ├── 3_foo.rb
│ │ │ ├── 1_people_have_last_names.rb
│ │ │ ├── 2_we_need_reminders.rb
│ │ │ └── 3_innocent_jointable.rb
│ │ ├── duplicate_names
│ │ │ ├── 20080507052938_chunky.rb
│ │ │ └── 20080507053028_chunky.rb
│ │ ├── to_copy2
│ │ │ ├── 1_create_articles.rb
│ │ │ └── 2_create_comments.rb
│ │ ├── to_copy_with_timestamps2
│ │ │ ├── 20090101010101_create_articles.rb
│ │ │ └── 20090101010202_create_comments.rb
│ │ ├── interleaved
│ │ │ ├── pass_3
│ │ │ │ ├── 2_interleaved_i_raise_on_down.rb
│ │ │ │ └── 1_interleaved_people_have_last_names.rb
│ │ │ └── pass_2
│ │ │ │ └── 1_interleaved_people_have_last_names.rb
│ │ ├── missing
│ │ │ ├── 1_people_have_last_names.rb
│ │ │ ├── 1000_people_have_middle_names.rb
│ │ │ ├── 3_we_need_reminders.rb
│ │ │ └── 4_innocent_jointable.rb
│ │ ├── to_copy
│ │ │ ├── 1_people_have_hobbies.rb
│ │ │ └── 2_people_have_descriptions.rb
│ │ ├── valid
│ │ │ ├── 1_valid_people_have_last_names.rb
│ │ │ ├── 2_we_need_reminders.rb
│ │ │ └── 3_innocent_jointable.rb
│ │ ├── to_copy_with_timestamps
│ │ │ ├── 20090101010101_people_have_hobbies.rb
│ │ │ └── 20090101010202_people_have_descriptions.rb
│ │ ├── broken
│ │ │ └── 100_migration_that_raises_exception.rb
│ │ └── valid_with_timestamps
│ │ │ └── 20100101010101_valid_with_timestamps_people_have_last_names.rb
│ ├── models
│ │ ├── guid.rb
│ │ ├── binary.rb
│ │ ├── boolean.rb
│ │ ├── default.rb
│ │ ├── task.rb
│ │ ├── minimalistic.rb
│ │ ├── tyre.rb
│ │ ├── course.rb
│ │ ├── entrant.rb
│ │ ├── admin.rb
│ │ ├── admin
│ │ │ ├── account.rb
│ │ │ └── user.rb
│ │ ├── electron.rb
│ │ ├── event.rb
│ │ ├── joke.rb
│ │ ├── member_type.rb
│ │ ├── dashboard.rb
│ │ ├── keyboard.rb
│ │ ├── legacy_thing.rb
│ │ ├── line_item.rb
│ │ ├── reader.rb
│ │ ├── toy.rb
│ │ ├── zine.rb
│ │ ├── column_name.rb
│ │ ├── contract.rb
│ │ ├── mixed_case_monkey.rb
│ │ ├── movie.rb
│ │ ├── molecule.rb
│ │ ├── without_table.rb
│ │ ├── computer.rb
│ │ ├── essay.rb
│ │ ├── price_estimate.rb
│ │ ├── subscription.rb
│ │ ├── matey.rb
│ │ ├── speedometer.rb
│ │ ├── wheel.rb
│ │ ├── liquid.rb
│ │ ├── categorization.rb
│ │ ├── country.rb
│ │ ├── owner.rb
│ │ ├── treaty.rb
│ │ ├── auto_id.rb
│ │ ├── bulb.rb
│ │ ├── warehouse_thing.rb
│ │ ├── engine.rb
│ │ ├── member_detail.rb
│ │ ├── item.rb
│ │ ├── invoice.rb
│ │ ├── job.rb
│ │ ├── sponsor.rb
│ │ ├── organization.rb
│ │ ├── membership.rb
│ │ ├── minivan.rb
│ │ ├── subscriber.rb
│ │ ├── order.rb
│ │ ├── tag.rb
│ │ ├── interest.rb
│ │ ├── treasure.rb
│ │ ├── ship_part.rb
│ │ ├── edge.rb
│ │ ├── reference.rb
│ │ ├── bird.rb
│ │ ├── book.rb
│ │ ├── citation.rb
│ │ └── shop.rb
│ ├── assets
│ │ ├── example.log
│ │ └── flowers.jpg
│ ├── config.rb
│ └── cases
│ │ └── adapters
│ │ └── firebird
│ │ └── connection_test.rb
├── examples
│ ├── .gitignore
│ └── associations.png
└── lib
│ ├── rails
│ └── generators
│ │ └── active_record
│ │ ├── observer
│ │ └── templates
│ │ │ └── observer.rb
│ │ └── model
│ │ └── templates
│ │ ├── module.rb
│ │ └── model.rb
│ └── active_record
│ └── version.rb
├── actionmailer
├── test
│ ├── fixtures
│ │ ├── base_mailer
│ │ │ ├── welcome.erb
│ │ │ ├── different_layout.html.erb
│ │ │ ├── different_layout.text.erb
│ │ │ ├── html_only.html.erb
│ │ │ ├── plain_text_only.text.erb
│ │ │ ├── email_custom_layout.text.html.erb
│ │ │ ├── attachment_with_content.erb
│ │ │ ├── implicit_multipart.html.erb
│ │ │ ├── implicit_multipart.text.erb
│ │ │ ├── implicit_with_locale.html.erb
│ │ │ ├── implicit_with_locale.text.erb
│ │ │ ├── implicit_with_locale.en.html.erb
│ │ │ ├── implicit_with_locale.pl.text.erb
│ │ │ ├── explicit_multipart_with_one_template.erb
│ │ │ ├── email_with_translations.html.erb
│ │ │ ├── explicit_multipart_templates.html.erb
│ │ │ ├── explicit_multipart_templates.text.erb
│ │ │ ├── inline_attachment.text.erb
│ │ │ └── inline_attachment.html.erb
│ │ ├── auto_layout_mailer
│ │ │ ├── hello.html.erb
│ │ │ ├── multipart.html.erb
│ │ │ └── multipart.text.erb
│ │ ├── first_mailer
│ │ │ └── share.erb
│ │ ├── second_mailer
│ │ │ └── share.erb
│ │ ├── test_mailer
│ │ │ ├── _subtemplate.text.erb
│ │ │ ├── rxml_template.rxml
│ │ │ ├── multipart_alternative.plain.erb
│ │ │ ├── implicitly_multipart_example.yaml.erb
│ │ │ ├── multipart_alternative.html.erb
│ │ │ ├── signed_up.html.erb
│ │ │ ├── included_subtemplate.text.erb
│ │ │ ├── implicitly_multipart_example.ignored.erb
│ │ │ ├── implicitly_multipart_example.rhtml.bak
│ │ │ ├── custom_templating_extension.html.haml
│ │ │ ├── custom_templating_extension.text.haml
│ │ │ ├── implicitly_multipart_example.text.erb
│ │ │ ├── implicitly_multipart_example.html.erb
│ │ │ └── implicitly_multipart_example.html.erb~
│ │ ├── layouts
│ │ │ ├── spam.html.erb
│ │ │ ├── different_layout.html.erb
│ │ │ ├── different_layout.text.erb
│ │ │ ├── auto_layout_mailer.html.erb
│ │ │ └── auto_layout_mailer.text.erb
│ │ ├── nested_layout_mailer
│ │ │ └── signup.html.erb
│ │ ├── explicit_layout_mailer
│ │ │ ├── logout.html.erb
│ │ │ └── signup.html.erb
│ │ ├── another.path
│ │ │ └── base_mailer
│ │ │ │ └── welcome.erb
│ │ ├── asset_mailer
│ │ │ └── welcome.html.erb
│ │ ├── templates
│ │ │ └── signed_up.erb
│ │ ├── asset_host_mailer
│ │ │ └── email_with_asset.html.erb
│ │ ├── path.with.dots
│ │ │ └── funky_path_mailer
│ │ │ │ └── multipart_with_template_path_with_dots.erb
│ │ ├── attachments
│ │ │ ├── foo.jpg
│ │ │ └── test.jpg
│ │ └── url_test_mailer
│ │ │ └── signed_up_with_url.erb
│ └── mailers
│ │ └── asset_mailer.rb
└── lib
│ └── action_mailer
│ └── version.rb
├── activesupport
├── test
│ ├── dependencies
│ │ ├── conflict.rb
│ │ ├── service_two.rb
│ │ ├── requires_nonexistent0.rb
│ │ ├── requires_nonexistent1.rb
│ │ ├── cross_site_depender.rb
│ │ ├── check_warnings.rb
│ │ ├── service_one.rb
│ │ ├── mutual_one.rb
│ │ ├── mutual_two.rb
│ │ └── raises_exception.rb
│ ├── fixtures
│ │ ├── custom.rb
│ │ └── autoload
│ │ │ ├── another_class.rb
│ │ │ └── some_class.rb
│ ├── autoloading_fixtures
│ │ ├── conflict.rb
│ │ ├── e.rb
│ │ ├── a
│ │ │ ├── b.rb
│ │ │ └── c
│ │ │ │ ├── d.rb
│ │ │ │ └── e
│ │ │ │ └── f.rb
│ │ ├── application.rb
│ │ ├── cross_site_dependency.rb
│ │ ├── load_path
│ │ │ └── loaded_constant.rb
│ │ ├── class_folder
│ │ │ ├── inline_class.rb
│ │ │ ├── class_folder_subclass.rb
│ │ │ └── nested_class.rb
│ │ ├── module_folder
│ │ │ ├── inline_class.rb
│ │ │ ├── nested_sibling.rb
│ │ │ └── nested_class.rb
│ │ ├── raises_name_error.rb
│ │ ├── module_with_custom_const_missing
│ │ │ └── a
│ │ │ │ └── b.rb
│ │ ├── class_folder.rb
│ │ ├── requires_constant.rb
│ │ ├── multiple_constant_file.rb
│ │ ├── raises_no_method_error.rb
│ │ ├── counting_loader.rb
│ │ └── loads_constant.rb
│ ├── empty_bool.rb
│ ├── gzip_test.rb
│ └── core_ext
│ │ └── regexp_ext_test.rb
└── lib
│ └── active_support
│ ├── core_ext
│ ├── float.rb
│ ├── process.rb
│ ├── big_decimal.rb
│ ├── file.rb
│ ├── string
│ │ ├── interpolation.rb
│ │ ├── starts_ends_with.rb
│ │ ├── behavior.rb
│ │ ├── exclude.rb
│ │ └── encoding.rb
│ ├── file
│ │ └── path.rb
│ ├── numeric.rb
│ ├── regexp.rb
│ ├── exception.rb
│ ├── benchmark.rb
│ ├── integer.rb
│ ├── integer
│ │ └── multiple.rb
│ ├── date
│ │ └── acts_like.rb
│ ├── time
│ │ └── acts_like.rb
│ ├── range.rb
│ ├── object
│ │ └── conversions.rb
│ ├── range
│ │ └── overlaps.rb
│ ├── kernel.rb
│ ├── module
│ │ ├── remove_method.rb
│ │ └── reachable.rb
│ ├── class.rb
│ └── hash
│ │ └── deep_dup.rb
│ ├── json.rb
│ ├── all.rb
│ ├── values
│ └── unicode_tables.dat
│ ├── core_ext.rb
│ ├── builder.rb
│ ├── time
│ └── autoload.rb
│ ├── multibyte
│ └── exceptions.rb
│ ├── version.rb
│ ├── json
│ └── variable.rb
│ └── i18n.rb
├── activemodel
├── lib
│ └── active_model
│ │ ├── railtie.rb
│ │ └── version.rb
└── test
│ ├── models
│ ├── sheep.rb
│ ├── track_back.rb
│ ├── blog_post.rb
│ ├── automobile.rb
│ ├── custom_reader.rb
│ └── person.rb
│ ├── config.rb
│ └── validators
│ └── email_validator.rb
├── .yardopts
├── activeresource
├── test
│ └── fixtures
│ │ ├── person.rb
│ │ ├── customer.rb
│ │ ├── proxy.rb
│ │ ├── street_address.rb
│ │ ├── subscription_plan.rb
│ │ └── sound.rb
└── lib
│ └── active_resource
│ └── version.rb
├── tools
└── console
├── version.rb
└── bin
└── rails
/RAILS_VERSION:
--------------------------------------------------------------------------------
1 | 3.1.0.beta
2 |
--------------------------------------------------------------------------------
/railties/.gitignore:
--------------------------------------------------------------------------------
1 | log/
2 |
--------------------------------------------------------------------------------
/actionpack/test/tmp/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/all/people.csv:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/all/tasks.yml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/empty/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/hello.html:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/shared.html.erb:
--------------------------------------------------------------------------------
1 | Elastica
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_two.html.erb:
--------------------------------------------------------------------------------
1 | Hello
--------------------------------------------------------------------------------
/activerecord/test/fixtures/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite*
--------------------------------------------------------------------------------
/activerecord/test/fixtures/all/developers.yml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/hello.txt:
--------------------------------------------------------------------------------
1 | Hello
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/index.html:
--------------------------------------------------------------------------------
1 | /index.html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_hello.builder:
--------------------------------------------------------------------------------
1 | xm.hello
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial.erb:
--------------------------------------------------------------------------------
1 | invalid
--------------------------------------------------------------------------------
/activerecord/examples/.gitignore:
--------------------------------------------------------------------------------
1 | performance.sql
2 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/welcome.erb:
--------------------------------------------------------------------------------
1 | Welcome
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/alt/layouts/alt.erb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/.gitignore:
--------------------------------------------------------------------------------
1 | absolute/*
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/foo/bar.html:
--------------------------------------------------------------------------------
1 | /foo/bar.html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial.js.erb:
--------------------------------------------------------------------------------
1 | partial js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world.erb:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/activerecord/test/fixtures/naked/csv/accounts.csv:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/naked/yml/accounts.yml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/conflict.rb:
--------------------------------------------------------------------------------
1 | Conflict = 1
--------------------------------------------------------------------------------
/activesupport/test/fixtures/custom.rb:
--------------------------------------------------------------------------------
1 | class Custom
2 | end
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/index.erb:
--------------------------------------------------------------------------------
1 | Hello from index.erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/blog_public/.gitignore:
--------------------------------------------------------------------------------
1 | absolute/*
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/blog_public/blog.html:
--------------------------------------------------------------------------------
1 | /blog/blog.html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/blog_public/index.html:
--------------------------------------------------------------------------------
1 | /blog/index.html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/fun/games/_game.erb:
--------------------------------------------------------------------------------
1 | <%= game.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/views/hello.erb:
--------------------------------------------------------------------------------
1 | hello.erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/404.html:
--------------------------------------------------------------------------------
1 | 404 error fixture
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/500.html:
--------------------------------------------------------------------------------
1 | 500 error fixture
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/elsewhere/cools.js:
--------------------------------------------------------------------------------
1 | // cools.js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/elsewhere/file.css:
--------------------------------------------------------------------------------
1 | /*file.css*/
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/foo/index.html:
--------------------------------------------------------------------------------
1 | /foo/index.html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/bank.js:
--------------------------------------------------------------------------------
1 | // bank js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/replies/_reply.erb:
--------------------------------------------------------------------------------
1 | <%= reply.content %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial.html.erb:
--------------------------------------------------------------------------------
1 | partial html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_only.erb:
--------------------------------------------------------------------------------
1 | only partial
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/dont_pick_me:
--------------------------------------------------------------------------------
1 | non-template file
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world.da.html.erb:
--------------------------------------------------------------------------------
1 | Hey verden
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world.erb~:
--------------------------------------------------------------------------------
1 | Don't pick me!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hyphen-ated.erb:
--------------------------------------------------------------------------------
1 | Hello world!
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/template.erb:
--------------------------------------------------------------------------------
1 | <%= template.path %>
--------------------------------------------------------------------------------
/activerecord/test/fixtures/fk_test_has_pk.yml:
--------------------------------------------------------------------------------
1 | first:
2 | id: 1
--------------------------------------------------------------------------------
/activerecord/test/fixtures/naked/yml/courses.yml:
--------------------------------------------------------------------------------
1 | qwerty
2 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/conflict.rb:
--------------------------------------------------------------------------------
1 | Conflict = 2
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/e.rb:
--------------------------------------------------------------------------------
1 | class E
2 | end
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb:
--------------------------------------------------------------------------------
1 | Inside
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/different_layout.html.erb:
--------------------------------------------------------------------------------
1 | HTML
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/first_mailer/share.erb:
--------------------------------------------------------------------------------
1 | first mail
2 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/second_mailer/share.erb:
--------------------------------------------------------------------------------
1 | second mail
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/fun/serious/games/_game.erb:
--------------------------------------------------------------------------------
1 | <%= game.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/views/goodbye.erb:
--------------------------------------------------------------------------------
1 | hello.erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/_yield_only.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/xhr.html.erb:
--------------------------------------------------------------------------------
1 | XHR!
2 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/localized/hello_world.de.html:
--------------------------------------------------------------------------------
1 | Gutten Tag
--------------------------------------------------------------------------------
/actionpack/test/fixtures/localized/hello_world.en.html:
--------------------------------------------------------------------------------
1 | Hello World
--------------------------------------------------------------------------------
/actionpack/test/fixtures/mascots/_mascot.html.erb:
--------------------------------------------------------------------------------
1 | <%= mascot.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/post_test/post/index.html.erb:
--------------------------------------------------------------------------------
1 | Hello Firefox
--------------------------------------------------------------------------------
/actionpack/test/fixtures/post_test/post/index.iphone.erb:
--------------------------------------------------------------------------------
1 | Hello iPhone
--------------------------------------------------------------------------------
/actionpack/test/fixtures/projects/_project.erb:
--------------------------------------------------------------------------------
1 | <%= project.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/effects.js:
--------------------------------------------------------------------------------
1 | // effects js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/robber.js:
--------------------------------------------------------------------------------
1 | // robber js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/stylesheets/bank.css:
--------------------------------------------------------------------------------
1 | /* bank.css */
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_with/edit.html.erb:
--------------------------------------------------------------------------------
1 | Edit world!
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_with/new.html.erb:
--------------------------------------------------------------------------------
1 | New world!
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_form.erb:
--------------------------------------------------------------------------------
1 | <%= form.label :title %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_raise.html.erb:
--------------------------------------------------------------------------------
1 | <%= doesnt_exist %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world.pt-BR.html.erb:
--------------------------------------------------------------------------------
1 | Ola mundo
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/proper_block_detection.erb:
--------------------------------------------------------------------------------
1 | <%= @todo %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/topics/_topic.html.erb:
--------------------------------------------------------------------------------
1 | <%= topic.title %>
--------------------------------------------------------------------------------
/activerecord/test/fixtures/minimalistics.yml:
--------------------------------------------------------------------------------
1 | first:
2 | id: 1
3 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/a/b.rb:
--------------------------------------------------------------------------------
1 | class A::B
2 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/template.rb:
--------------------------------------------------------------------------------
1 | say "It works from file!"
2 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/different_layout.text.erb:
--------------------------------------------------------------------------------
1 | PLAIN
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/html_only.html.erb:
--------------------------------------------------------------------------------
1 |
Testing
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/plain_text_only.text.erb:
--------------------------------------------------------------------------------
1 | Testing
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/_subtemplate.text.erb:
--------------------------------------------------------------------------------
1 | let's go!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/_top_level_partial_only.erb:
--------------------------------------------------------------------------------
1 | top level partial
--------------------------------------------------------------------------------
/actionpack/test/fixtures/developers/_developer.erb:
--------------------------------------------------------------------------------
1 | <%= developer.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/fun/games/_form.erb:
--------------------------------------------------------------------------------
1 | <%= form.label :title %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/alt/hello.erb:
--------------------------------------------------------------------------------
1 | alt/hello.erb
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/post_test/super_post/index.html.erb:
--------------------------------------------------------------------------------
1 | Super Firefox
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/controls.js:
--------------------------------------------------------------------------------
1 | // controls js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/dragdrop.js:
--------------------------------------------------------------------------------
1 | // dragdrop js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/prototype.js:
--------------------------------------------------------------------------------
1 | // prototype js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/stylesheets/robber.css:
--------------------------------------------------------------------------------
1 | /* robber.css */
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/using_defaults.html.erb:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/scope/test/modgreet.erb:
--------------------------------------------------------------------------------
1 | Beautiful modules!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_counter.html.erb:
--------------------------------------------------------------------------------
1 | <%= counter_counter %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_from_helper.erb:
--------------------------------------------------------------------------------
1 | <%= render_from_helper %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_utf8_partial.html.erb:
--------------------------------------------------------------------------------
1 | <%= "текст" %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/basic.html.erb:
--------------------------------------------------------------------------------
1 | Hello from basic.html.erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/formatted_xml_erb.builder:
--------------------------------------------------------------------------------
1 | xml.test 'failed'
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/greeting.html.erb:
--------------------------------------------------------------------------------
1 | This is grand!
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/greeting.xml.erb:
--------------------------------------------------------------------------------
1 | This is grand!
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/malformed/malformed.erb~:
--------------------------------------------------------------------------------
1 | Don't render me!
--------------------------------------------------------------------------------
/activerecord/test/models/guid.rb:
--------------------------------------------------------------------------------
1 | class Guid < ActiveRecord::Base
2 | end
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/a/c/d.rb:
--------------------------------------------------------------------------------
1 | class A::C::D
2 | end
--------------------------------------------------------------------------------
/activesupport/test/dependencies/service_two.rb:
--------------------------------------------------------------------------------
1 | class ServiceTwo
2 | end
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/layouts/spam.html.erb:
--------------------------------------------------------------------------------
1 | Spammer layout <%= yield %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/nested_layout_mailer/signup.html.erb:
--------------------------------------------------------------------------------
1 | We do not spam
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/naked_render.erb:
--------------------------------------------------------------------------------
1 | Hello from naked_render.erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/_top_level_partial.html.erb:
--------------------------------------------------------------------------------
1 | top level partial html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/addresses/list.erb:
--------------------------------------------------------------------------------
1 | We only need to get this far!
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/blog_public/subdir/index.html:
--------------------------------------------------------------------------------
1 | /blog/subdir/index.html
--------------------------------------------------------------------------------
/actionpack/test/fixtures/fun/games/hello_world.erb:
--------------------------------------------------------------------------------
1 | Living in a nested world
--------------------------------------------------------------------------------
/actionpack/test/fixtures/happy_path/render_action/hello_world.erb:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/layouts/item.erb:
--------------------------------------------------------------------------------
1 | item.erb <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/layouts/symlinked:
--------------------------------------------------------------------------------
1 | ../../symlink_parent
--------------------------------------------------------------------------------
/actionpack/test/fixtures/override/test/hello_world.erb:
--------------------------------------------------------------------------------
1 | Hello overridden world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/override2/layouts/test/sub.erb:
--------------------------------------------------------------------------------
1 | layout: <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/post_test/super_post/index.iphone.erb:
--------------------------------------------------------------------------------
1 | Super iPhone
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/500.da.html:
--------------------------------------------------------------------------------
1 | 500 localized error fixture
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/application.js:
--------------------------------------------------------------------------------
1 | // application js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/subdir/subdir.js:
--------------------------------------------------------------------------------
1 | // subdir js
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/version.1.0.js:
--------------------------------------------------------------------------------
1 | // version.1.0 js
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/stylesheets/random.styles:
--------------------------------------------------------------------------------
1 | /* random.styles */
--------------------------------------------------------------------------------
/actionpack/test/fixtures/quiz/questions/_question.html.erb:
--------------------------------------------------------------------------------
1 | <%= question.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/formatted_html_erb.html.erb:
--------------------------------------------------------------------------------
1 | formatted html erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world_with_layout_false.erb:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/malformed/malformed.en.html.erb~:
--------------------------------------------------------------------------------
1 | Don't render me!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/malformed/malformed.html.erb~:
--------------------------------------------------------------------------------
1 | Don't render me!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/translations/templates/found.erb:
--------------------------------------------------------------------------------
1 | <%= t('.foo') %>
2 |
--------------------------------------------------------------------------------
/activerecord/test/models/binary.rb:
--------------------------------------------------------------------------------
1 | class Binary < ActiveRecord::Base
2 | end
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/a/c/e/f.rb:
--------------------------------------------------------------------------------
1 | class A::C::E::F
2 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/app/mailers/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/app/models/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/test/unit/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/auto_layout_mailer/multipart.html.erb:
--------------------------------------------------------------------------------
1 | text/html multipart
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/email_custom_layout.text.html.erb:
--------------------------------------------------------------------------------
1 | body_text
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb:
--------------------------------------------------------------------------------
1 | You logged out
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb:
--------------------------------------------------------------------------------
1 | We do not spam
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/layouts/different_layout.html.erb:
--------------------------------------------------------------------------------
1 | HTML -- <%= yield %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/layouts/different_layout.text.erb:
--------------------------------------------------------------------------------
1 | PLAIN -- <%= yield %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/rxml_template.rxml:
--------------------------------------------------------------------------------
1 | xml.instruct!
2 | xml.test
--------------------------------------------------------------------------------
/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/_yield_with_params.erb:
--------------------------------------------------------------------------------
1 | <%= yield 'Yield!' %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/javascripts/common.javascript:
--------------------------------------------------------------------------------
1 | // common.javascript
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/stylesheets/subdir/subdir.css:
--------------------------------------------------------------------------------
1 | /* subdir.css */
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/stylesheets/version.1.0.css:
--------------------------------------------------------------------------------
1 | /* version.1.0.css */
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/using_defaults.xml.builder:
--------------------------------------------------------------------------------
1 | xml.p "Hello world!"
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_object_inspector.erb:
--------------------------------------------------------------------------------
1 | <%= object_inspector.inspect -%>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/greeting.js.rjs:
--------------------------------------------------------------------------------
1 | page[:body].visual_effect :highlight
--------------------------------------------------------------------------------
/actionpack/test/fixtures/translations/templates/array.erb:
--------------------------------------------------------------------------------
1 | <%= t('.foo.bar') %>
2 |
--------------------------------------------------------------------------------
/activemodel/lib/active_model/railtie.rb:
--------------------------------------------------------------------------------
1 | require "active_model"
2 | require "rails"
--------------------------------------------------------------------------------
/activerecord/test/fixtures/admin/accounts.yml:
--------------------------------------------------------------------------------
1 | signals37:
2 | name: 37signals
3 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/fk_test_has_fk.yml:
--------------------------------------------------------------------------------
1 | first:
2 | id: 1
3 | fk_id: 1
4 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/items.yml:
--------------------------------------------------------------------------------
1 | dvd:
2 | id: 1
3 | name: Godfather
4 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/warehouse-things.yml:
--------------------------------------------------------------------------------
1 | one:
2 | id: 1
3 | value: 1000
--------------------------------------------------------------------------------
/activerecord/test/models/boolean.rb:
--------------------------------------------------------------------------------
1 | class Boolean < ActiveRecord::Base
2 | end
3 |
--------------------------------------------------------------------------------
/activerecord/test/models/default.rb:
--------------------------------------------------------------------------------
1 | class Default < ActiveRecord::Base
2 | end
3 |
--------------------------------------------------------------------------------
/activerecord/test/models/task.rb:
--------------------------------------------------------------------------------
1 | class Task < ActiveRecord::Base
2 |
3 | end
4 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/test/functional/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/test/integration/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/generator/templates/templates/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/test/fixtures/about_yml_plugins/bad_about_yml/init.rb:
--------------------------------------------------------------------------------
1 | # intentionally empty
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/app_builders/empty_builder.rb:
--------------------------------------------------------------------------------
1 | class AppBuilder
2 | end
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/another.path/base_mailer/welcome.erb:
--------------------------------------------------------------------------------
1 | Welcome from another path
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/asset_mailer/welcome.html.erb:
--------------------------------------------------------------------------------
1 | <%= image_tag "dummy.png" %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.erb:
--------------------------------------------------------------------------------
1 | text/plain multipart
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/multipart_alternative.plain.erb:
--------------------------------------------------------------------------------
1 | foo: <%= @foo %>
--------------------------------------------------------------------------------
/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_with/using_resource_with_block.html.erb:
--------------------------------------------------------------------------------
1 | Hello world!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_labelling_form.erb:
--------------------------------------------------------------------------------
1 | <%= labelling_form.label :title %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_one.html.erb:
--------------------------------------------------------------------------------
1 | <%= render :partial => "two" %> world
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/implicit_content_type.atom.builder:
--------------------------------------------------------------------------------
1 | xml.atom do
2 | end
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_file_with_ivar.erb:
--------------------------------------------------------------------------------
1 | The secret is <%= @secret %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/translations/templates/missing.erb:
--------------------------------------------------------------------------------
1 | <%= t('.missing') %>
2 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/naked/yml/companies.yml:
--------------------------------------------------------------------------------
1 | # i wonder what will happen here
2 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/application.rb:
--------------------------------------------------------------------------------
1 | ApplicationController = 10
2 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/public/stylesheets/.empty_directory:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/generators/model_generator.rb:
--------------------------------------------------------------------------------
1 | raise "I should never be loaded"
--------------------------------------------------------------------------------
/.yardopts:
--------------------------------------------------------------------------------
1 | --exclude /templates/
2 | --quiet
3 | act*/lib/**/*.rb
4 | railties/lib/**/*.rb
5 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/attachment_with_content.erb:
--------------------------------------------------------------------------------
1 | Attachment with content
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/implicit_multipart.html.erb:
--------------------------------------------------------------------------------
1 | HTML Implicit Multipart
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/implicit_multipart.text.erb:
--------------------------------------------------------------------------------
1 | TEXT Implicit Multipart
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/implicit_with_locale.html.erb:
--------------------------------------------------------------------------------
1 | Implicit with locale HTML
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/implicit_with_locale.text.erb:
--------------------------------------------------------------------------------
1 | Implicit with locale TEXT
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb:
--------------------------------------------------------------------------------
1 | Hello from layout <%= yield %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/templates/signed_up.erb:
--------------------------------------------------------------------------------
1 | Hello there,
2 |
3 | Mr. <%= @recipient %>
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/action_with_ivars.erb:
--------------------------------------------------------------------------------
1 | <%= @my_ivar %> from index_with_ivars.erb
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/layouts/application.erb:
--------------------------------------------------------------------------------
1 | Application Enter : <%= yield %> : Exit
--------------------------------------------------------------------------------
/actionpack/test/fixtures/customers/_customer.html.erb:
--------------------------------------------------------------------------------
1 | <%= greeting %>: <%= customer.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/layouts/layout_test.erb:
--------------------------------------------------------------------------------
1 | layout_test.erb <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/builder.builder:
--------------------------------------------------------------------------------
1 | xml.wrapper do
2 | xml << yield
3 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/old_content_type/render_default_for_erb.erb:
--------------------------------------------------------------------------------
1 | <%= 'hello world!' %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/old_content_type/render_default_for_rjs.rjs:
--------------------------------------------------------------------------------
1 | page.alert 'hello world!'
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb:
--------------------------------------------------------------------------------
1 | Mobile
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/using_defaults.js.rjs:
--------------------------------------------------------------------------------
1 | page[:body].visual_effect :highlight
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_customer.erb:
--------------------------------------------------------------------------------
1 | Hello: <%= customer.name rescue "Anonymous" %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_person.erb:
--------------------------------------------------------------------------------
1 | Second: <%= name %>
2 | Third: <%= @name %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb:
--------------------------------------------------------------------------------
1 | passed formatted xml erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_file_from_template.html.erb:
--------------------------------------------------------------------------------
1 | <%= render :file => @path %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_file_with_locals.erb:
--------------------------------------------------------------------------------
1 | The secret is <%= secret %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_file_with_locals_and_default.erb:
--------------------------------------------------------------------------------
1 | <%= secret ||= 'one' %>
--------------------------------------------------------------------------------
/activemodel/test/models/sheep.rb:
--------------------------------------------------------------------------------
1 | class Sheep
2 | extend ActiveModel::Naming
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/minimalistic.rb:
--------------------------------------------------------------------------------
1 | class Minimalistic < ActiveRecord::Base
2 | end
3 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/requires_nonexistent0.rb:
--------------------------------------------------------------------------------
1 | require 'RMagickDontExistDude'
2 |
--------------------------------------------------------------------------------
/activesupport/test/fixtures/autoload/another_class.rb:
--------------------------------------------------------------------------------
1 | class Fixtures::AnotherClass
2 | end
--------------------------------------------------------------------------------
/activesupport/test/fixtures/autoload/some_class.rb:
--------------------------------------------------------------------------------
1 | class Fixtures::Autoload::SomeClass
2 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin/templates/init.rb:
--------------------------------------------------------------------------------
1 | # Include hook code here
2 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin/templates/install.rb:
--------------------------------------------------------------------------------
1 | # Install hook code here
2 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/create_test_dummy_template.rb:
--------------------------------------------------------------------------------
1 | create_dummy_app("spec/dummy")
2 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/plugin_builders/empty_builder.rb:
--------------------------------------------------------------------------------
1 | class PluginBuilder
2 | end
3 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/layouts/auto_layout_mailer.text.erb:
--------------------------------------------------------------------------------
1 | text/plain layout - <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/abstract_controller/testing/me3/index.erb:
--------------------------------------------------------------------------------
1 | Hello from me3/index.erb
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/abstract_controller/testing/me4/index.erb:
--------------------------------------------------------------------------------
1 | Hello from me4/index.erb
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/abstract_controller/testing/me5/index.erb:
--------------------------------------------------------------------------------
1 | Hello from me5/index.erb
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/helper_test.erb:
--------------------------------------------------------------------------------
1 | Hello <%= helpery_test %> : <%= included_method %>
--------------------------------------------------------------------------------
/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/yield.erb:
--------------------------------------------------------------------------------
1 | <%= yield :title %>
2 | <%= yield %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/old_content_type/render_default_for_builder.builder:
--------------------------------------------------------------------------------
1 | xml.p "Hello world!"
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb:
--------------------------------------------------------------------------------
1 | HTML for all_types_with_layout
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder:
--------------------------------------------------------------------------------
1 | xml.p "Hello world!"
--------------------------------------------------------------------------------
/actionpack/test/fixtures/star_star_mime/index.js.erb:
--------------------------------------------------------------------------------
1 | function addition(a,b){ return a+b; }
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_customer_counter_with_as.erb:
--------------------------------------------------------------------------------
1 | <%= client.name %><%= client_counter %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_customer_greeting.erb:
--------------------------------------------------------------------------------
1 | <%= greeting %>: <%= customer_greeting.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_hash_greeting.erb:
--------------------------------------------------------------------------------
1 | <%= greeting %>: <%= hash_greeting[:first_name] %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_for_use_in_layout.html.erb:
--------------------------------------------------------------------------------
1 | Inside from partial (<%= name %>)
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/formatted_xml_erb.html.erb:
--------------------------------------------------------------------------------
1 | passed formatted html erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb:
--------------------------------------------------------------------------------
1 | Hello HTML!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_implicit_js_template_without_layout.js.erb:
--------------------------------------------------------------------------------
1 | alert('hello');
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_to_string_test.erb:
--------------------------------------------------------------------------------
1 | The value of foo is: ::<%= @foo %>::
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/sub_template_raise.html.erb:
--------------------------------------------------------------------------------
1 | <%= render :partial => "test/raise" %>
--------------------------------------------------------------------------------
/activerecord/test/fixtures/collections.yml:
--------------------------------------------------------------------------------
1 | collection_1:
2 | id: 1
3 | name: Collection
4 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/legacy_things.yml:
--------------------------------------------------------------------------------
1 | obtuse:
2 | id: 1
3 | tps_report_number: 500
4 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/toys.yml:
--------------------------------------------------------------------------------
1 | bone:
2 | toy_id: 1
3 | name: Bone
4 | pet_id: 1
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/tyre.rb:
--------------------------------------------------------------------------------
1 | class Tyre < ActiveRecord::Base
2 | belongs_to :car
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/cross_site_dependency.rb:
--------------------------------------------------------------------------------
1 | class CrossSiteDependency
2 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin/templates/lib/%file_name%.rb.tt:
--------------------------------------------------------------------------------
1 | # <%= class_name %>
2 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin/templates/uninstall.rb:
--------------------------------------------------------------------------------
1 | # Uninstall hook code here
2 |
--------------------------------------------------------------------------------
/railties/test/fixtures/about_yml_plugins/plugin_without_about_yml/init.rb:
--------------------------------------------------------------------------------
1 | # intentionally empty
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/asset_host_mailer/email_with_asset.html.erb:
--------------------------------------------------------------------------------
1 | <%= image_tag "somelogo.png" %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/implicit_with_locale.en.html.erb:
--------------------------------------------------------------------------------
1 | Implicit with locale EN HTML
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/implicit_with_locale.pl.text.erb:
--------------------------------------------------------------------------------
1 | Implicit with locale PL TEXT
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.yaml.erb:
--------------------------------------------------------------------------------
1 | yaml to: <%= @recipient %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/multipart_alternative.html.erb:
--------------------------------------------------------------------------------
1 | foo <%= @foo %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/signed_up.html.erb:
--------------------------------------------------------------------------------
1 | Hello there,
2 |
3 | Mr. <%= @recipient %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/standard.html.erb:
--------------------------------------------------------------------------------
1 | <%= yield %><%= @variable_for_layout %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/mascot.rb:
--------------------------------------------------------------------------------
1 | class Mascot < ActiveRecord::Base
2 | belongs_to :company
3 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/post_test/layouts/post.html.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs:
--------------------------------------------------------------------------------
1 | page << "RJS for all_types_with_layout"
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_with/using_resource.js.rjs:
--------------------------------------------------------------------------------
1 | page[:body].visual_effect :highlight
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_with_only_html_version.html.erb:
--------------------------------------------------------------------------------
1 | partial with only html version
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb:
--------------------------------------------------------------------------------
1 | The secret is <%= @secret %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world_from_rxml.builder:
--------------------------------------------------------------------------------
1 | xml.html do
2 | xml.p "Hello"
3 | end
4 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb:
--------------------------------------------------------------------------------
1 | Hey HTML!
2 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/dashboards.yml:
--------------------------------------------------------------------------------
1 | cool_first:
2 | dashboard_id: d1
3 | name: my_dashboard
--------------------------------------------------------------------------------
/activerecord/test/fixtures/men.yml:
--------------------------------------------------------------------------------
1 | gordon:
2 | name: Gordon
3 |
4 | steve:
5 | name: Steve
6 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/float.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/float/rounding'
2 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/requires_nonexistent1.rb:
--------------------------------------------------------------------------------
1 | require_dependency 'requires_nonexistent0'
2 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/explicit_multipart_with_one_template.erb:
--------------------------------------------------------------------------------
1 | <%= self.formats.inspect %>
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/layouts/abstract_controller/testing/me4.erb:
--------------------------------------------------------------------------------
1 | Me4 Enter : <%= yield %> : Exit
--------------------------------------------------------------------------------
/actionpack/test/fixtures/helpers/just_me_helper.rb:
--------------------------------------------------------------------------------
1 | module JustMeHelper
2 | def me() "mine!" end
3 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/helpers/me_too_helper.rb:
--------------------------------------------------------------------------------
1 | module MeTooHelper
2 | def me() "me too!" end
3 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/_customers.erb:
--------------------------------------------------------------------------------
1 | <%= yield Struct.new(:name).new("David") %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/mascots.yml:
--------------------------------------------------------------------------------
1 | upload_bird:
2 | id: 1
3 | company_id: 1
4 | name: The Upload Bird
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb:
--------------------------------------------------------------------------------
1 | Hello future from <%= @type -%>!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/layouts/standard.html.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs:
--------------------------------------------------------------------------------
1 | page[:body].visual_effect :highlight
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_layout_for_partial.html.erb:
--------------------------------------------------------------------------------
1 | Before (<%= name %>)
2 | <%= yield %>
3 | After
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_utf8_partial_magic.html.erb:
--------------------------------------------------------------------------------
1 | <%# encoding: utf-8 -%>
2 | <%= "текст" %>
3 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/variants.yml:
--------------------------------------------------------------------------------
1 | variant_1:
2 | id: 1
3 | product_id: 1
4 | name: Variant
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/course.rb:
--------------------------------------------------------------------------------
1 | class Course < ActiveRecord::Base
2 | has_many :entrants
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/entrant.rb:
--------------------------------------------------------------------------------
1 | class Entrant < ActiveRecord::Base
2 | belongs_to :course
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/process.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/process/daemon'
2 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/load_path/loaded_constant.rb:
--------------------------------------------------------------------------------
1 | module LoadedConstant
2 | end
3 |
4 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/email_with_translations.html.erb:
--------------------------------------------------------------------------------
1 | <%= t('.greet_user', :name => 'lifo') %>
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/explicit_multipart_templates.html.erb:
--------------------------------------------------------------------------------
1 | HTML Explicit Multipart Templates
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/explicit_multipart_templates.text.erb:
--------------------------------------------------------------------------------
1 | TEXT Explicit Multipart Templates
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/inline_attachment.text.erb:
--------------------------------------------------------------------------------
1 | Inline Image
2 |
3 | No image for you
4 |
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/old_content_type/render_default_content_types_for_respond_to.xml.erb:
--------------------------------------------------------------------------------
1 | world
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_customer_counter.erb:
--------------------------------------------------------------------------------
1 | <%= customer_counter.name %><%= customer_counter_counter %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_with_partial.erb:
--------------------------------------------------------------------------------
1 | <%= render 'test/partial' %>
2 | partial with partial
3 |
--------------------------------------------------------------------------------
/activerecord/test/assets/example.log:
--------------------------------------------------------------------------------
1 | # Logfile created on Wed Oct 31 16:05:13 +0000 2007 by logger.rb/1.5.2.9
2 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/products.yml:
--------------------------------------------------------------------------------
1 | product_1:
2 | id: 1
3 | collection_id: 1
4 | name: Product
5 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/reserved_words/distinct.yml:
--------------------------------------------------------------------------------
1 | distinct1:
2 | id: 1
3 |
4 | distinct2:
5 | id: 2
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/admin.rb:
--------------------------------------------------------------------------------
1 | module Admin
2 | def self.table_name_prefix
3 | 'admin_'
4 | end
5 | end
--------------------------------------------------------------------------------
/activerecord/test/models/admin/account.rb:
--------------------------------------------------------------------------------
1 | class Admin::Account < ActiveRecord::Base
2 | has_many :users
3 | end
--------------------------------------------------------------------------------
/activerecord/test/models/admin/user.rb:
--------------------------------------------------------------------------------
1 | class Admin::User < ActiveRecord::Base
2 | belongs_to :account
3 | end
--------------------------------------------------------------------------------
/activerecord/test/models/electron.rb:
--------------------------------------------------------------------------------
1 | class Electron < ActiveRecord::Base
2 | belongs_to :molecule
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/event.rb:
--------------------------------------------------------------------------------
1 | class Event < ActiveRecord::Base
2 | validates_uniqueness_of :title
3 | end
--------------------------------------------------------------------------------
/activerecord/test/models/joke.rb:
--------------------------------------------------------------------------------
1 | class Joke < ActiveRecord::Base
2 | set_table_name 'funny_jokes'
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/member_type.rb:
--------------------------------------------------------------------------------
1 | class MemberType < ActiveRecord::Base
2 | has_many :members
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/class_folder/inline_class.rb:
--------------------------------------------------------------------------------
1 | class ClassFolder::InlineClass
2 | end
3 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/module_folder/inline_class.rb:
--------------------------------------------------------------------------------
1 | class ModuleFolder::InlineClass
2 | end
3 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/module_folder/nested_sibling.rb:
--------------------------------------------------------------------------------
1 | class ModuleFolder::NestedSibling
2 | end
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/raises_name_error.rb:
--------------------------------------------------------------------------------
1 | class RaisesNameError
2 | FooBarBaz
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/cross_site_depender.rb:
--------------------------------------------------------------------------------
1 | class CrossSiteDepender
2 | CrossSiteDependency
3 | end
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/included_subtemplate.text.erb:
--------------------------------------------------------------------------------
1 | Hey Ho, <%= render :partial => "subtemplate" %>
--------------------------------------------------------------------------------
/actionpack/test/abstract/views/abstract_controller/testing/me3/formatted.html.erb:
--------------------------------------------------------------------------------
1 | Hello from me3/formatted.html.erb
--------------------------------------------------------------------------------
/actionpack/test/fixtures/alternate_helpers/foo_helper.rb:
--------------------------------------------------------------------------------
1 | module FooHelper
2 | redefine_method(:baz) {}
3 | end
4 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab:
--------------------------------------------------------------------------------
1 | layouts/third_party_template_library.mab
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/_partial_and_yield.erb:
--------------------------------------------------------------------------------
1 | <%= render :partial => 'test/partial' %>
2 | <%= yield %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/talk_from_action.erb:
--------------------------------------------------------------------------------
1 | <%= @title || yield(:title) %>
2 | <%= yield -%>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb:
--------------------------------------------------------------------------------
1 | Hello iPhone future from <%= @type -%>!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/respond_to/layouts/missing.html.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/symlink_parent/symlinked_layout.erb:
--------------------------------------------------------------------------------
1 | This is my layout
2 |
3 | <%= yield %>
4 |
5 | End.
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_customer_with_var.erb:
--------------------------------------------------------------------------------
1 | <%= customer.name %> <%= customer.name %> <%= customer.name %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_layout_for_block_with_args.html.erb:
--------------------------------------------------------------------------------
1 | Before
2 | <%= yield 'arg1', 'arg2' %>
3 | After
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_local_inspector.html.erb:
--------------------------------------------------------------------------------
1 | <%= local_assigns.keys.map {|k| k.to_s }.sort.join(",") -%>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/action_talk_to_layout.erb:
--------------------------------------------------------------------------------
1 | <% @title = "Talking to the layout" -%>
2 | Action was here!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/capturing.erb:
--------------------------------------------------------------------------------
1 | <% days = capture do %>
2 | Dreamy days
3 | <% end %>
4 | <%= days %>
--------------------------------------------------------------------------------
/activerecord/test/fixtures/author_favorites.yml:
--------------------------------------------------------------------------------
1 | david_mary:
2 | id: 1
3 | author_id: 1
4 | favorite_author_id: 2
--------------------------------------------------------------------------------
/activerecord/test/fixtures/computers.yml:
--------------------------------------------------------------------------------
1 | workstation:
2 | id: 1
3 | developer: 1
4 | extendedWarranty: 1
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/dashboard.rb:
--------------------------------------------------------------------------------
1 | class Dashboard < ActiveRecord::Base
2 | set_primary_key :dashboard_id
3 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/big_decimal.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/big_decimal/conversions'
2 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/check_warnings.rb:
--------------------------------------------------------------------------------
1 | $check_warnings_load_count += 1
2 | $checked_verbose = $VERBOSE
3 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/gitignore:
--------------------------------------------------------------------------------
1 | .bundle
2 | db/*.sqlite3
3 | log/*.log
4 | tmp/**/*
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb:
--------------------------------------------------------------------------------
1 | <%= render :partial => 'partial' %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.erb:
--------------------------------------------------------------------------------
1 | controller_name_space/nested.erb <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb:
--------------------------------------------------------------------------------
1 | multiple_extensions.html.erb <%= yield %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/content_for.erb:
--------------------------------------------------------------------------------
1 | <% content_for :title do -%>Putting stuff in the title!<% end -%>Great stuff!
--------------------------------------------------------------------------------
/activerecord/test/assets/flowers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/activerecord/test/assets/flowers.jpg
--------------------------------------------------------------------------------
/activerecord/test/fixtures/author_addresses.yml:
--------------------------------------------------------------------------------
1 | david_address:
2 | id: 1
3 |
4 | david_address_extra:
5 | id: 2
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/tags.yml:
--------------------------------------------------------------------------------
1 | general:
2 | id: 1
3 | name: General
4 |
5 | misc:
6 | id: 2
7 | name: Misc
--------------------------------------------------------------------------------
/activerecord/test/fixtures/vertices.yml:
--------------------------------------------------------------------------------
1 | <% (1..5).each do |id| %>
2 | vertex_<%= id %>:
3 | id: <%= id %>
4 | <% end %>
--------------------------------------------------------------------------------
/activerecord/test/models/keyboard.rb:
--------------------------------------------------------------------------------
1 | class Keyboard < ActiveRecord::Base
2 | set_primary_key 'key_number'
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/module_with_custom_const_missing/a/b.rb:
--------------------------------------------------------------------------------
1 | ModuleWithCustomConstMissing::A::B = "10"
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb:
--------------------------------------------------------------------------------
1 | module ApplicationHelper
2 | end
3 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb:
--------------------------------------------------------------------------------
1 | Have some dots. Enjoy!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/_partial.erb:
--------------------------------------------------------------------------------
1 | <% cache do %>
2 | Old fragment caching in a partial
3 | <% end %>
4 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/yield_with_render_inline_inside.erb:
--------------------------------------------------------------------------------
1 | <%= render :inline => 'welcome' %>
2 | <%= yield %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_hash_object.erb:
--------------------------------------------------------------------------------
1 | <%= hash_object[:first_name] %>
2 | <%= hash_object[:first_name].reverse %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs:
--------------------------------------------------------------------------------
1 | page.call "document.write", render(:partial => "one")
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/topic.rb:
--------------------------------------------------------------------------------
1 | class Topic < ActiveRecord::Base
2 | has_many :replies, :dependent => :destroy
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/examples/associations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/activerecord/examples/associations.png
--------------------------------------------------------------------------------
/activerecord/test/fixtures/organizations.yml:
--------------------------------------------------------------------------------
1 | nsa:
2 | name: No Such Agency
3 | discordians:
4 | name: Discordians
5 |
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/legacy_thing.rb:
--------------------------------------------------------------------------------
1 | class LegacyThing < ActiveRecord::Base
2 | set_locking_column :version
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/line_item.rb:
--------------------------------------------------------------------------------
1 | class LineItem < ActiveRecord::Base
2 | belongs_to :invoice, :touch => true
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/reader.rb:
--------------------------------------------------------------------------------
1 | class Reader < ActiveRecord::Base
2 | belongs_to :post
3 | belongs_to :person
4 | end
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/toy.rb:
--------------------------------------------------------------------------------
1 | class Toy < ActiveRecord::Base
2 | set_primary_key :toy_id
3 | belongs_to :pet
4 | end
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/zine.rb:
--------------------------------------------------------------------------------
1 | class Zine < ActiveRecord::Base
2 | has_many :interests, :inverse_of => :zine
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/json.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/json/decoding'
2 | require 'active_support/json/encoding'
3 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/class_folder.rb:
--------------------------------------------------------------------------------
1 | class ClassFolder
2 | ConstantInClassFolder = 'indeed'
3 | end
4 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/csrf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/csrf.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/fxn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/fxn.png
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/generators/fixjour_generator.rb:
--------------------------------------------------------------------------------
1 | class FixjourGenerator < Rails::Generators::NamedBase
2 | end
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb:
--------------------------------------------------------------------------------
1 | Hello
2 | <%= cache do %>This bit's fragment cached<% end %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs:
--------------------------------------------------------------------------------
1 | page.replace_html 'notices', :partial => 'partial'
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/_column.html.erb:
--------------------------------------------------------------------------------
1 | <%= yield :column %>
2 | <%= yield %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/yield_with_render_partial_inside.erb:
--------------------------------------------------------------------------------
1 | <%= render :partial => 'test/partial' %>
2 | <%= yield %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/content_for_with_parameter.erb:
--------------------------------------------------------------------------------
1 | <% content_for :title, "Putting stuff in the title!" -%>
2 | Great stuff!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/delete_with_js.rjs:
--------------------------------------------------------------------------------
1 | page.remove 'person'
2 | page.visual_effect :highlight, "project-#{@project_id}"
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs:
--------------------------------------------------------------------------------
1 | page.call "document.write", render(:partial => "one.html.erb")
2 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/speedometers.yml:
--------------------------------------------------------------------------------
1 | cool_first:
2 | speedometer_id: s1
3 | name: my_speedometer
4 | dashboard_id: d1
--------------------------------------------------------------------------------
/activerecord/test/models/column_name.rb:
--------------------------------------------------------------------------------
1 | class ColumnName < ActiveRecord::Base
2 | def self.table_name () "colnametests" end
3 | end
--------------------------------------------------------------------------------
/activerecord/test/models/contract.rb:
--------------------------------------------------------------------------------
1 | class Contract < ActiveRecord::Base
2 | belongs_to :company
3 | belongs_to :developer
4 | end
--------------------------------------------------------------------------------
/activerecord/test/models/mixed_case_monkey.rb:
--------------------------------------------------------------------------------
1 | class MixedCaseMonkey < ActiveRecord::Base
2 | set_primary_key 'monkeyID'
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/movie.rb:
--------------------------------------------------------------------------------
1 | class Movie < ActiveRecord::Base
2 | def self.primary_key
3 | "movieid"
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/activeresource/test/fixtures/person.rb:
--------------------------------------------------------------------------------
1 | class Person < ActiveResource::Base
2 | self.site = "http://37s.sunrise.i:3000"
3 | end
4 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/bullet.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/bullet.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/habtm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/habtm.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/has_one.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/has_one.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/tab_red.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/tab_red.gif
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/config/routes.rb:
--------------------------------------------------------------------------------
1 | <%= camelized %>::Engine.routes.draw do
2 |
3 | end
4 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb:
--------------------------------------------------------------------------------
1 | Ignored when searching for implicitly multipart parts.
2 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak:
--------------------------------------------------------------------------------
1 | Ignored when searching for implicitly multipart parts.
2 |
--------------------------------------------------------------------------------
/actionpack/lib/action_controller/deprecated/performance_test.rb:
--------------------------------------------------------------------------------
1 | ActionController::PerformanceTest = ActionDispatch::PerformanceTest
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/helpers/fun/pdf_helper.rb:
--------------------------------------------------------------------------------
1 | module Fun
2 | module PdfHelper
3 | def foobar() 'baz' end
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello.builder:
--------------------------------------------------------------------------------
1 | xml.html do
2 | xml.p "Hello #{@name}"
3 | xml << render(:file => "test/greeting")
4 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_world_container.builder:
--------------------------------------------------------------------------------
1 | xml.test do
2 | render :partial => 'hello', :locals => { :xm => xml }
3 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/layout_render_file.erb:
--------------------------------------------------------------------------------
1 | <% content_for :title do %>title<% end -%>
2 | <%= render :file => 'layouts/yield' -%>
--------------------------------------------------------------------------------
/activerecord/test/fixtures/reserved_words/select.yml:
--------------------------------------------------------------------------------
1 | select1:
2 | id: 1
3 |
4 | select2:
5 | id: 2
6 |
7 | select3:
8 | id: 3
9 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/ships.yml:
--------------------------------------------------------------------------------
1 | black_pearl:
2 | name: "Black Pearl"
3 | interceptor:
4 | id: 2
5 | name: "Interceptor"
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/zines.yml:
--------------------------------------------------------------------------------
1 | staying_in:
2 | title: Staying in '08
3 |
4 | going_out:
5 | title: Outdoor Pursuits 2k+8
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/molecule.rb:
--------------------------------------------------------------------------------
1 | class Molecule < ActiveRecord::Base
2 | belongs_to :liquid
3 | has_many :electrons
4 | end
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/without_table.rb:
--------------------------------------------------------------------------------
1 | class WithoutTable < ActiveRecord::Base
2 | default_scope where(:published => true)
3 | end
--------------------------------------------------------------------------------
/activeresource/test/fixtures/customer.rb:
--------------------------------------------------------------------------------
1 | class Customer < ActiveResource::Base
2 | self.site = "http://37s.sunrise.i:3000"
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/module_folder/nested_class.rb:
--------------------------------------------------------------------------------
1 | module ModuleFolder
2 | class NestedClass
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/requires_constant.rb:
--------------------------------------------------------------------------------
1 | require "loaded_constant"
2 |
3 | module RequiresConstant
4 | end
5 |
6 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/service_one.rb:
--------------------------------------------------------------------------------
1 | $loaded_service_one ||= 0
2 | $loaded_service_one += 1
3 |
4 | class ServiceOne
5 | end
--------------------------------------------------------------------------------
/railties/guides/assets/images/book_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/book_icon.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/challenge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/challenge.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/has_many.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/has_many.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/tip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/tip.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/up.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/nav_arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/nav_arrow.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/tab_grey.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/tab_grey.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/tab_info.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/tab_info.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/tab_note.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/tab_note.gif
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/README.rdoc:
--------------------------------------------------------------------------------
1 | = <%= camelized %>
2 |
3 | This project rocks and uses MIT-LICENSE.
--------------------------------------------------------------------------------
/railties/test/fixtures/about_yml_plugins/bad_about_yml/about.yml:
--------------------------------------------------------------------------------
1 | # an empty YAML file - any content in here seems to get parsed as a string
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/attachments/foo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/actionmailer/test/fixtures/attachments/foo.jpg
--------------------------------------------------------------------------------
/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb:
--------------------------------------------------------------------------------
1 | <%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb:
--------------------------------------------------------------------------------
1 |
2 | <%= cache do %>ERB
<% end %>
3 |
4 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/helpers/helpery_test_helper.rb:
--------------------------------------------------------------------------------
1 | module HelperyTestHelper
2 | def helpery_test
3 | "Default"
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/binary_file:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/actionpack/test/fixtures/multipart/binary_file
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/mixed_files:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/actionpack/test/fixtures/multipart/mixed_files
--------------------------------------------------------------------------------
/actionpack/test/fixtures/project.rb:
--------------------------------------------------------------------------------
1 | class Project < ActiveRecord::Base
2 | has_and_belongs_to_many :developers, :uniq => true
3 | end
4 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/layout_render_object.erb:
--------------------------------------------------------------------------------
1 | <%= render :layout => "layouts/customers" do |customer| %><%= customer.name %><% end %>
--------------------------------------------------------------------------------
/activerecord/test/fixtures/jobs.yml:
--------------------------------------------------------------------------------
1 | unicyclist:
2 | id: 1
3 | ideal_reference_id: 2
4 | clown:
5 | id: 2
6 | magician:
7 | id: 3
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/member_types.yml:
--------------------------------------------------------------------------------
1 | founding:
2 | id: 1
3 | name: Founding
4 | provisional:
5 | id: 2
6 | name: Provisional
7 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/minivans.yml:
--------------------------------------------------------------------------------
1 | cool_first:
2 | minivan_id: m1
3 | name: my_minivan
4 | speedometer_id: s1
5 | color: blue
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/reserved_words/values.yml:
--------------------------------------------------------------------------------
1 | values1:
2 | id: 1
3 | group_id: 2
4 |
5 | values2:
6 | id: 2
7 | group_id: 1
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/computer.rb:
--------------------------------------------------------------------------------
1 | class Computer < ActiveRecord::Base
2 | belongs_to :developer, :foreign_key=>'developer'
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/all.rb:
--------------------------------------------------------------------------------
1 | require 'active_support'
2 | require 'active_support/time'
3 | require 'active_support/core_ext'
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/multiple_constant_file.rb:
--------------------------------------------------------------------------------
1 | MultipleConstantFile = 10
2 | SiblingConstant = MultipleConstantFile * 2
3 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/raises_no_method_error.rb:
--------------------------------------------------------------------------------
1 | class RaisesNoMethodError
2 | self.foobar_method_doesnt_exist
3 | end
4 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/belongs_to.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/belongs_to.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/check_bullet.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/check_bullet.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/edge_badge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/edge_badge.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/feature_tile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/feature_tile.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/footer_tile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/footer_tile.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/grey_bullet.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/grey_bullet.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/header_tile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/header_tile.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/home.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/next.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/note.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/note.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/prev.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/jaimeiniesta.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/jaimeiniesta.jpg
--------------------------------------------------------------------------------
/railties/guides/assets/images/polymorphic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/polymorphic.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/posts_index.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/posts_index.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/tab_yellow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/tab_yellow.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/tab_yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/tab_yellow.png
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/attachments/test.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/actionmailer/test/fixtures/attachments/test.jpg
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/custom_templating_extension.html.haml:
--------------------------------------------------------------------------------
1 | %p Hello there,
2 |
3 | %p
4 | Mr.
5 | = @recipient
6 | from haml
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.haml:
--------------------------------------------------------------------------------
1 | %p Hello there,
2 |
3 | %p
4 | Mr.
5 | = @recipient
6 | from haml
--------------------------------------------------------------------------------
/actionpack/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb:
--------------------------------------------------------------------------------
1 | Unknown action
2 | <%=h @exception.message %>
3 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/good_customers/_good_customer.html.erb:
--------------------------------------------------------------------------------
1 | <%= greeting %> good customer: <%= good_customer.name %><%= good_customer_counter %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/helpers/abc_helper.rb:
--------------------------------------------------------------------------------
1 | module AbcHelper
2 | def bare_a() end
3 | def bare_b() end
4 | def bare_c() end
5 | end
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/helpers/fun/games_helper.rb:
--------------------------------------------------------------------------------
1 | module Fun
2 | module GamesHelper
3 | def stratego() "Iz guuut!" end
4 | end
5 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/bracketed_param:
--------------------------------------------------------------------------------
1 | --AaB03x
2 | Content-Disposition: form-data; name="foo[baz]"
3 |
4 | bar
5 | --AaB03x--
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/mona_lisa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/actionpack/test/fixtures/multipart/mona_lisa.jpg
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/single_parameter:
--------------------------------------------------------------------------------
1 | --AaB03x
2 | Content-Disposition: form-data; name="foo"
3 |
4 | bar
5 | --AaB03x--
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/public/images/rails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/actionpack/test/fixtures/public/images/rails.png
--------------------------------------------------------------------------------
/activerecord/test/fixtures/courses.yml:
--------------------------------------------------------------------------------
1 | ruby:
2 | id: 1
3 | name: Ruby Development
4 |
5 | java:
6 | id: 2
7 | name: Java Development
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/mixed_case_monkeys.yml:
--------------------------------------------------------------------------------
1 | first:
2 | monkeyID: 1
3 | fleaCount: 42
4 | second:
5 | monkeyID: 2
6 | fleaCount: 43
7 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/movies.yml:
--------------------------------------------------------------------------------
1 | first:
2 | movieid: 1
3 | name: Terminator
4 |
5 | second:
6 | movieid: 2
7 | name: Gladiator
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/owners.yml:
--------------------------------------------------------------------------------
1 | blackbeard:
2 | owner_id: 1
3 | name: blackbeard
4 |
5 | ashley:
6 | owner_id: 2
7 | name: ashley
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/essay.rb:
--------------------------------------------------------------------------------
1 | class Essay < ActiveRecord::Base
2 | belongs_to :writer, :primary_key => :name, :polymorphic => true
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/price_estimate.rb:
--------------------------------------------------------------------------------
1 | class PriceEstimate < ActiveRecord::Base
2 | belongs_to :estimate_of, :polymorphic => true
3 | end
4 |
--------------------------------------------------------------------------------
/activerecord/test/models/subscription.rb:
--------------------------------------------------------------------------------
1 | class Subscription < ActiveRecord::Base
2 | belongs_to :subscriber
3 | belongs_to :book
4 | end
5 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/file.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/file/atomic'
2 | require 'active_support/core_ext/file/path'
3 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/string/interpolation.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/i18n'
2 | require 'i18n/core_ext/string/interpolate'
3 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/chapters_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/chapters_icon.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/error_messages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/error_messages.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/caution.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/caution.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/example.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/warning.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/rails_welcome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/rails_welcome.png
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/plugin/templates/test_helper.rb:
--------------------------------------------------------------------------------
1 | require 'rubygems'
2 | require 'test/unit'
3 | require 'active_support'
4 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/generators/wrong_generator.rb:
--------------------------------------------------------------------------------
1 | # Old generator version
2 | class WrongGenerator < Rails::Generator::NamedBase
3 | end
4 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.erb:
--------------------------------------------------------------------------------
1 | Plain text to <%= @recipient %>.
2 | Plain text to <%= @recipient %>.
3 |
--------------------------------------------------------------------------------
/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.erb:
--------------------------------------------------------------------------------
1 | Template is missing
2 | <%=h @exception.message %>
3 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/duplicate/3_foo.rb:
--------------------------------------------------------------------------------
1 | class Foo < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
--------------------------------------------------------------------------------
/activerecord/test/models/matey.rb:
--------------------------------------------------------------------------------
1 | class Matey < ActiveRecord::Base
2 | belongs_to :pirate
3 | belongs_to :target, :class_name => 'Pirate'
4 | end
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/speedometer.rb:
--------------------------------------------------------------------------------
1 | class Speedometer < ActiveRecord::Base
2 | set_primary_key :speedometer_id
3 | belongs_to :dashboard
4 | end
--------------------------------------------------------------------------------
/activerecord/test/models/wheel.rb:
--------------------------------------------------------------------------------
1 | class Wheel < ActiveRecord::Base
2 | belongs_to :wheelable, :polymorphic => true, :counter_cache => true
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/empty_bool.rb:
--------------------------------------------------------------------------------
1 | class EmptyTrue
2 | def empty?() true; end
3 | end
4 |
5 | class EmptyFalse
6 | def empty?() false; end
7 | end
8 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/credits_pic_blank.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/credits_pic_blank.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/has_many_through.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/has_many_through.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/has_one_through.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/has_one_through.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/header_backdrop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/header_backdrop.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/1.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/10.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/11.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/12.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/13.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/14.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/15.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/2.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/3.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/4.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/5.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/6.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/7.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/8.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/callouts/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/callouts/9.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/important.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/icons/important.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/rails_guides_logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/rails_guides_logo.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/rails_logo_remix.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/rails_logo_remix.gif
--------------------------------------------------------------------------------
/railties/guides/assets/images/session_fixation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/session_fixation.png
--------------------------------------------------------------------------------
/railties/lib/rails/generators/erb/controller/templates/view.html.erb:
--------------------------------------------------------------------------------
1 | <%= class_name %>#<%= @action %>
2 | Find me in <%= @path %>
3 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/helper/templates/helper.rb:
--------------------------------------------------------------------------------
1 | <% module_namespacing do -%>
2 | module <%= class_name %>Helper
3 | end
4 | <% end -%>
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder:
--------------------------------------------------------------------------------
1 | xml.body do
2 | cache do
3 | xml.p "Builder"
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/admin/users.yml:
--------------------------------------------------------------------------------
1 | david:
2 | name: David
3 | account: signals37
4 |
5 | jamis:
6 | name: Jamis
7 | account: signals37
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/edges.yml:
--------------------------------------------------------------------------------
1 | <% (1..4).each do |id| %>
2 | edge_<%= id %>:
3 | source_id: <%= id %>
4 | sink_id: <%= id + 1 %>
5 | <% end %>
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/liquid.rb:
--------------------------------------------------------------------------------
1 | class Liquid < ActiveRecord::Base
2 | set_table_name :liquid
3 | has_many :molecules, :uniq => true
4 | end
5 |
6 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/file/path.rb:
--------------------------------------------------------------------------------
1 | class File
2 | unless File.allocate.respond_to?(:to_path)
3 | alias to_path path
4 | end
5 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/numeric.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/numeric/bytes'
2 | require 'active_support/core_ext/numeric/time'
3 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/regexp.rb:
--------------------------------------------------------------------------------
1 | class Regexp #:nodoc:
2 | def multiline?
3 | options & MULTILINE == MULTILINE
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/content_for_concatenated.erb:
--------------------------------------------------------------------------------
1 | <% content_for :title, "Putting stuff "
2 | content_for :title, "in the title!" -%>
3 | Great stuff!
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/list.erb:
--------------------------------------------------------------------------------
1 | <%= @test_unchanged = 'goodbye' %><%= render :partial => 'customer', :collection => @customers %><%= @test_unchanged %>
2 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/non_erb_block_content_for.builder:
--------------------------------------------------------------------------------
1 | content_for :title do
2 | 'Putting stuff in the title!'
3 | end
4 | xml << "Great stuff!"
5 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/books.yml:
--------------------------------------------------------------------------------
1 | awdr:
2 | id: 1
3 | name: "Agile Web Development with Rails"
4 |
5 | rfr:
6 | id: 2
7 | name: "Ruby for Rails"
8 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/exception.rb:
--------------------------------------------------------------------------------
1 | module ActiveSupport
2 | FrozenObjectError = RUBY_VERSION < '1.9' ? TypeError : RuntimeError
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/counting_loader.rb:
--------------------------------------------------------------------------------
1 | $counting_loaded_times ||= 0
2 | $counting_loaded_times += 1
3 |
4 | module CountingLoader
5 | end
6 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/i18n/demo_untranslated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/i18n/demo_untranslated.png
--------------------------------------------------------------------------------
/railties/lib/rails/generators/erb/mailer/templates/view.text.erb:
--------------------------------------------------------------------------------
1 | <%= class_name %>#<%= @action %>
2 |
3 | <%%= @greeting %>, find me in app/views/<%= @path %>
4 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/rails/generators/foobar/foobar_generator.rb:
--------------------------------------------------------------------------------
1 | module Foobar
2 | class FoobarGenerator < Rails::Generators::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/projects.yml:
--------------------------------------------------------------------------------
1 | action_controller:
2 | id: 2
3 | name: Active Controller
4 |
5 | active_record:
6 | id: 1
7 | name: Active Record
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/projects.yml:
--------------------------------------------------------------------------------
1 | action_controller:
2 | id: 2
3 | name: Active Controller
4 |
5 | active_record:
6 | id: 1
7 | name: Active Record
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/categorization.rb:
--------------------------------------------------------------------------------
1 | class Categorization < ActiveRecord::Base
2 | belongs_to :post
3 | belongs_to :category
4 | belongs_to :author
5 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/values/unicode_tables.dat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/activesupport/lib/active_support/values/unicode_tables.dat
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/loads_constant.rb:
--------------------------------------------------------------------------------
1 | module LoadsConstant
2 | end
3 |
4 | # The _ = assignment is to prevent warnings
5 | _ = RequiresConstant
6 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/i18n/demo_translated_en.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/i18n/demo_translated_en.png
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/using_layout_around_block.html.erb:
--------------------------------------------------------------------------------
1 | <%= render(:layout => "layout_for_partial", :locals => { :name => "David" }) do %>Inside from block<% end %>
--------------------------------------------------------------------------------
/activerecord/test/models/country.rb:
--------------------------------------------------------------------------------
1 | class Country < ActiveRecord::Base
2 |
3 | set_primary_key :country_id
4 |
5 | has_and_belongs_to_many :treaties
6 |
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/owner.rb:
--------------------------------------------------------------------------------
1 | class Owner < ActiveRecord::Base
2 | set_primary_key :owner_id
3 | has_many :pets
4 | has_many :toys, :through => :pets
5 | end
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/treaty.rb:
--------------------------------------------------------------------------------
1 | class Treaty < ActiveRecord::Base
2 |
3 | set_primary_key :treaty_id
4 |
5 | has_and_belongs_to_many :countries
6 |
7 | end
8 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/benchmark.rb:
--------------------------------------------------------------------------------
1 | require 'benchmark'
2 |
3 | class << Benchmark
4 | def ms
5 | 1000 * realtime { yield }
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/class_folder/class_folder_subclass.rb:
--------------------------------------------------------------------------------
1 | class ClassFolder::ClassFolderSubclass < ClassFolder
2 | ConstantInClassFolder
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/autoloading_fixtures/class_folder/nested_class.rb:
--------------------------------------------------------------------------------
1 | class ClassFolder
2 | class NestedClass
3 | end
4 |
5 | class SiblingClass
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/customized_error_messages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/customized_error_messages.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/i18n/demo_localized_pirate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/i18n/demo_localized_pirate.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/i18n/demo_translated_pirate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/i18n/demo_translated_pirate.png
--------------------------------------------------------------------------------
/railties/guides/assets/images/validation_error_messages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/validation_error_messages.png
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/gitignore:
--------------------------------------------------------------------------------
1 | .bundle/
2 | log/*.log
3 | pkg/
4 | test/dummy/db/*.sqlite3
5 | test/dummy/log/*.log
6 | test/dummy/tmp/
--------------------------------------------------------------------------------
/actionmailer/test/mailers/asset_mailer.rb:
--------------------------------------------------------------------------------
1 | class AssetMailer < ActionMailer::Base
2 | self.mailer_name = "asset_mailer"
3 |
4 | def welcome
5 | mail
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb:
--------------------------------------------------------------------------------
1 | <%= render :inline => 'Some inline content' %>
2 | <%= cache do %>Some cached content<% end %>
3 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/cars.yml:
--------------------------------------------------------------------------------
1 | honda:
2 | id: 1
3 | name: honda
4 | engines_count: 0
5 |
6 | zyke:
7 | id: 2
8 | name: zyke
9 | engines_count: 0
10 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/members.yml:
--------------------------------------------------------------------------------
1 | groucho:
2 | name: Groucho Marx
3 | member_type_id: 1
4 | some_other_guy:
5 | name: Englebert Humperdink
6 | member_type_id: 2
7 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/subscribers.yml:
--------------------------------------------------------------------------------
1 | first:
2 | nick: alterself
3 | name: Luke Holden
4 |
5 | second:
6 | nick: webster132
7 | name: David Heinemeier Hansson
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/auto_id.rb:
--------------------------------------------------------------------------------
1 | class AutoId < ActiveRecord::Base
2 | def self.table_name () "auto_id_tests" end
3 | def self.primary_key () "auto_id" end
4 | end
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/bulb.rb:
--------------------------------------------------------------------------------
1 | class Bulb < ActiveRecord::Base
2 |
3 | default_scope :conditions => {:name => 'defaulty' }
4 |
5 | belongs_to :car
6 |
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/warehouse_thing.rb:
--------------------------------------------------------------------------------
1 | class WarehouseThing < ActiveRecord::Base
2 | set_table_name "warehouse-things"
3 |
4 | validates_uniqueness_of :value
5 | end
--------------------------------------------------------------------------------
/railties/guides/assets/images/i18n/demo_translation_missing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/guides/assets/images/i18n/demo_translation_missing.png
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt:
--------------------------------------------------------------------------------
1 | module <%= camelized %>
2 | module ApplicationHelper
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 |
3 | mount <%= camelized %>::Engine => "/<%= name %>"
4 | end
5 |
--------------------------------------------------------------------------------
/activemodel/test/config.rb:
--------------------------------------------------------------------------------
1 | TEST_ROOT = File.expand_path(File.dirname(__FILE__))
2 | FIXTURES_ROOT = TEST_ROOT + "/fixtures"
3 | SCHEMA_FILE = TEST_ROOT + "/schema.rb"
4 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/readers.yml:
--------------------------------------------------------------------------------
1 | michael_welcome:
2 | id: 1
3 | post_id: 1
4 | person_id: 1
5 |
6 | michael_authorless:
7 | id: 2
8 | post_id: 3
9 | person_id: 1
--------------------------------------------------------------------------------
/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb:
--------------------------------------------------------------------------------
1 | class Chunky < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb:
--------------------------------------------------------------------------------
1 | class Chunky < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy2/1_create_articles.rb:
--------------------------------------------------------------------------------
1 | class CreateArticles < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy2/2_create_comments.rb:
--------------------------------------------------------------------------------
1 | class CreateArticles < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activeresource/test/fixtures/proxy.rb:
--------------------------------------------------------------------------------
1 | class ProxyResource < ActiveResource::Base
2 | self.site = "http://localhost"
3 | self.proxy = "http://user:password@proxy.local:3000"
4 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb:
--------------------------------------------------------------------------------
1 | class String
2 | alias_method :starts_with?, :start_with?
3 | alias_method :ends_with?, :end_with?
4 | end
5 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb:
--------------------------------------------------------------------------------
1 | class ApplicationController < ActionController::Base
2 | protect_from_forgery
3 | end
4 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb:
--------------------------------------------------------------------------------
1 | <% if full? -%>
2 | require "<%= name %>/engine"
3 |
4 | <% end -%>
5 | module <%= camelized %>
6 | end
7 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/app_builders/simple_builder.rb:
--------------------------------------------------------------------------------
1 | class AppBuilder
2 | def gitignore
3 | create_file ".gitignore", <<-R.strip
4 | foobar
5 | R
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/base_mailer/inline_attachment.html.erb:
--------------------------------------------------------------------------------
1 | Inline Image
2 |
3 | <%= image_tag attachments['logo.png'].url %>
4 |
5 | This is an image that is inline
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/calling_partial_with_layout.html.erb:
--------------------------------------------------------------------------------
1 | <%= render(:layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => { :name => "David" }) %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/utf8.html.erb:
--------------------------------------------------------------------------------
1 | Русский <%= render :partial => 'test/utf8_partial' %>
2 | <%= "日".encoding %>
3 | <%= @output_buffer.encoding %>
4 | <%= __ENCODING__ %>
5 |
--------------------------------------------------------------------------------
/railties/lib/rails/console/helpers.rb:
--------------------------------------------------------------------------------
1 | def helper
2 | @helper ||= ApplicationController.helpers
3 | end
4 |
5 | def controller
6 | @controller ||= ApplicationController.new
7 | end
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/stylesheets/USAGE:
--------------------------------------------------------------------------------
1 | Description:
2 | Copies scaffold stylesheets to public/stylesheets/.
3 |
4 | Examples:
5 | `rails generate stylesheets`
6 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/plugin_builders/simple_builder.rb:
--------------------------------------------------------------------------------
1 | class PluginBuilder
2 | def gitignore
3 | create_file ".gitignore", <<-R.strip
4 | foobar
5 | R
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_with_layout.erb:
--------------------------------------------------------------------------------
1 | <%= render :partial => 'test/partial', :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } %>
2 | partial with layout
3 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/authors.yml:
--------------------------------------------------------------------------------
1 | david:
2 | id: 1
3 | name: David
4 | author_address_id: 1
5 | author_address_extra_id: 2
6 |
7 | mary:
8 | id: 2
9 | name: Mary
10 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/mateys.yml:
--------------------------------------------------------------------------------
1 | blackbeard_to_redbeard:
2 | pirate_id: <%= Fixtures.identify(:blackbeard) %>
3 | target_id: <%= Fixtures.identify(:redbeard) %>
4 | weight: 10
5 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/price_estimates.yml:
--------------------------------------------------------------------------------
1 | saphire_1:
2 | price: 10
3 | estimate_of: sapphire (Treasure)
4 |
5 | sapphire_2:
6 | price: 20
7 | estimate_of: sapphire (Treasure)
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/engine.rb:
--------------------------------------------------------------------------------
1 | class Engine < ActiveRecord::Base
2 | belongs_to :my_car, :class_name => 'Car', :foreign_key => 'car_id', :counter_cache => :engines_count
3 | end
4 |
5 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext.rb:
--------------------------------------------------------------------------------
1 | Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].sort.each do |path|
2 | require "active_support/core_ext/#{File.basename(path, '.rb')}"
3 | end
4 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/mutual_one.rb:
--------------------------------------------------------------------------------
1 | $mutual_dependencies_count += 1
2 | require_dependency 'mutual_two'
3 | require_dependency 'mutual_two.rb'
4 | require_dependency 'mutual_two'
5 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake:
--------------------------------------------------------------------------------
1 | # desc "Explaining what the task does"
2 | # task :<%= name %> do
3 | # # Task goes here
4 | # end
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/nested_layout.erb:
--------------------------------------------------------------------------------
1 | <% content_for :title, "title" -%>
2 | <% content_for :column do -%>column<% end -%>
3 | <%= render :layout => 'layouts/column' do -%>content<% end -%>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/potential_conflicts.erb:
--------------------------------------------------------------------------------
1 | First: <%= @name %>
2 | <%= render :partial => "person", :locals => { :name => "Stephan" } -%>
3 | Fourth: <%= @name %>
4 | Fifth: <%= name %>
--------------------------------------------------------------------------------
/activerecord/lib/rails/generators/active_record/observer/templates/observer.rb:
--------------------------------------------------------------------------------
1 | <% module_namespacing do -%>
2 | class <%= class_name %>Observer < ActiveRecord::Observer
3 | end
4 | <% end -%>
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/member_detail.rb:
--------------------------------------------------------------------------------
1 | class MemberDetail < ActiveRecord::Base
2 | belongs_to :member
3 | belongs_to :organization
4 | has_one :member_type, :through => :member
5 | end
6 |
--------------------------------------------------------------------------------
/activesupport/test/dependencies/mutual_two.rb:
--------------------------------------------------------------------------------
1 | $mutual_dependencies_count += 1
2 | require_dependency 'mutual_one.rb'
3 | require_dependency 'mutual_one'
4 | require_dependency 'mutual_one.rb'
5 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/erb/scaffold/templates/new.html.erb:
--------------------------------------------------------------------------------
1 | New <%= singular_table_name %>
2 |
3 | <%%= render 'form' %>
4 |
5 | <%%= link_to 'Back', <%= index_helper %>_path %>
6 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/public/images/rails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/raphael/rails/master/railties/lib/rails/generators/rails/app/templates/public/images/rails.png
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin/templates/lib/tasks/%file_name%_tasks.rake.tt:
--------------------------------------------------------------------------------
1 | # desc "Explaining what the task does"
2 | # task :<%= file_name %> do
3 | # # Task goes here
4 | # end
5 |
--------------------------------------------------------------------------------
/actionpack/lib/action_controller/deprecated/integration_test.rb:
--------------------------------------------------------------------------------
1 | ActionController::Integration = ActionDispatch::Integration
2 | ActionController::IntegrationTest = ActionDispatch::IntegrationTest
3 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml:
--------------------------------------------------------------------------------
1 | sub_special_3:
2 | id: 102
3 | name: A special category in an arbitrarily named subsubdir file
4 | type: SpecialCategory
5 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/clubs.yml:
--------------------------------------------------------------------------------
1 | boring_club:
2 | name: Banana appreciation society
3 | moustache_club:
4 | name: Moustache and Eyebrow Fancier Club
5 | crazy_club:
6 | name: Skull and bones
--------------------------------------------------------------------------------
/activerecord/test/models/item.rb:
--------------------------------------------------------------------------------
1 | class AbstractItem < ActiveRecord::Base
2 | self.abstract_class = true
3 | has_one :tagging, :as => :taggable
4 | end
5 |
6 | class Item < AbstractItem
7 | end
8 |
--------------------------------------------------------------------------------
/activeresource/test/fixtures/street_address.rb:
--------------------------------------------------------------------------------
1 | class StreetAddress < ActiveResource::Base
2 | self.site = "http://37s.sunrise.i:3000/people/:person_id/"
3 | self.element_name = 'address'
4 | end
5 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/app_builders/tweak_builder.rb:
--------------------------------------------------------------------------------
1 | class AppBuilder < Rails::AppBuilder
2 | def gitignore
3 | create_file ".gitignore", <<-R.strip
4 | foobar
5 | R
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/deprecated_nested_layout.erb:
--------------------------------------------------------------------------------
1 | <% content_for :title, "title" -%>
2 | <% content_for :column do -%>column<% end -%>
3 | <% render :layout => 'layouts/column' do -%>content<% end -%>
--------------------------------------------------------------------------------
/activesupport/test/dependencies/raises_exception.rb:
--------------------------------------------------------------------------------
1 | $raises_exception_load_count += 1
2 | raise Exception, 'Loading me failed, so do not add to loaded or history.'
3 | $raises_exception_load_count += 1
4 |
--------------------------------------------------------------------------------
/railties/lib/rails/performance_test_help.rb:
--------------------------------------------------------------------------------
1 | ActionController::Base.perform_caching = true
2 | ActiveSupport::Dependencies.mechanism = :require
3 | Rails.logger.level = ActiveSupport::BufferedLogger::INFO
4 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/categories_ordered.yml:
--------------------------------------------------------------------------------
1 | --- !!omap
2 | <% 100.times do |i| %>
3 | - fixture_no_<%= i %>:
4 | id: <%= i %>
5 | name: <%= "Category #{i}" %>
6 | type: Category
7 | <% end %>
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/funny_jokes.yml:
--------------------------------------------------------------------------------
1 | a_joke:
2 | id: 1
3 | name: Knock knock
4 |
5 | another_joke:
6 | id: 2
7 | name: |
8 | The \n Aristocrats
9 | Ate the candy
10 |
11 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy_with_timestamps2/20090101010101_create_articles.rb:
--------------------------------------------------------------------------------
1 | class CreateArticles < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy_with_timestamps2/20090101010202_create_comments.rb:
--------------------------------------------------------------------------------
1 | class CreateComments < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/models/invoice.rb:
--------------------------------------------------------------------------------
1 | class Invoice < ActiveRecord::Base
2 | has_many :line_items, :autosave => true
3 | before_save {|record| record.balance = record.line_items.map(&:amount).sum }
4 | end
5 |
--------------------------------------------------------------------------------
/activerecord/test/models/job.rb:
--------------------------------------------------------------------------------
1 | class Job < ActiveRecord::Base
2 | has_many :references
3 | has_many :people, :through => :references
4 | belongs_to :ideal_reference, :class_name => 'Reference'
5 | end
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/sponsor.rb:
--------------------------------------------------------------------------------
1 | class Sponsor < ActiveRecord::Base
2 | belongs_to :sponsor_club, :class_name => "Club", :foreign_key => "club_id"
3 | belongs_to :sponsorable, :polymorphic => true
4 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt:
--------------------------------------------------------------------------------
1 | module <%= camelized %>
2 | class ApplicationController < ActionController::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/plugin_builders/tweak_builder.rb:
--------------------------------------------------------------------------------
1 | class PluginBuilder < Rails::PluginBuilder
2 | def gitignore
3 | create_file ".gitignore", <<-R.strip
4 | foobar
5 | R
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/url_test_mailer/signed_up_with_url.erb:
--------------------------------------------------------------------------------
1 | Hello there,
2 |
3 | Mr. <%= @recipient %>. Please see our greeting at <%= @welcome_url %> <%= welcome_url %>
4 |
5 | <%= image_tag "somelogo.png" %>
--------------------------------------------------------------------------------
/actionpack/test/fixtures/reply.rb:
--------------------------------------------------------------------------------
1 | class Reply < ActiveRecord::Base
2 | scope :base
3 | belongs_to :topic, :include => [:replies]
4 | belongs_to :developer
5 |
6 | validates_presence_of :content
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/treasures.yml:
--------------------------------------------------------------------------------
1 | diamond:
2 | name: $LABEL
3 |
4 | sapphire:
5 | name: $LABEL
6 | looter: redbeard (Pirate)
7 |
8 | ruby:
9 | name: $LABEL
10 | looter: louis (Parrot)
11 |
--------------------------------------------------------------------------------
/activerecord/test/models/organization.rb:
--------------------------------------------------------------------------------
1 | class Organization < ActiveRecord::Base
2 | has_many :member_details
3 | has_many :members, :through => :member_details
4 |
5 | scope :clubs, { :from => 'clubs' }
6 | end
--------------------------------------------------------------------------------
/activeresource/test/fixtures/subscription_plan.rb:
--------------------------------------------------------------------------------
1 | class SubscriptionPlan < ActiveResource::Base
2 | self.site = "http://37s.sunrise.i:3000"
3 | self.element_name = 'plan'
4 | self.primary_key = :code
5 | end
6 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/integer.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/integer/multiple'
2 | require 'active_support/core_ext/integer/inflections'
3 | require 'active_support/core_ext/integer/time'
4 |
--------------------------------------------------------------------------------
/railties/lib/rails/rack/static.rb:
--------------------------------------------------------------------------------
1 | require 'action_dispatch'
2 |
3 | module Rails::Rack
4 | Static = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Rails::Rack::Static', ActionDispatch::Static)
5 | end
6 |
--------------------------------------------------------------------------------
/tools/console:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.expand_path('../../load_paths', __FILE__)
3 | require 'rails/all'
4 | require 'active_support/all'
5 | require 'irb'
6 | require 'irb/completion'
7 | IRB.start
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt:
--------------------------------------------------------------------------------
1 | class <%= class_name %>Generator < Rails::Generators::NamedBase
2 | source_root File.expand_path('../templates', __FILE__)
3 | end
4 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit.rb:
--------------------------------------------------------------------------------
1 | require 'rails/generators/named_base'
2 |
3 | module TestUnit
4 | module Generators
5 | class Base < Rails::Generators::NamedBase #:nodoc:
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/helper/templates/helper_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | <% module_namespacing do -%>
4 | class <%= class_name %>HelperTest < ActionView::TestCase
5 | end
6 | <% end -%>
7 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/utf8_magic.html.erb:
--------------------------------------------------------------------------------
1 | <%# encoding: utf-8 -%>
2 | Русский <%= render :partial => 'test/utf8_partial_magic' %>
3 | <%= "日".encoding %>
4 | <%= @output_buffer.encoding %>
5 | <%= __ENCODING__ %>
6 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/interleaved/pass_3/2_interleaved_i_raise_on_down.rb:
--------------------------------------------------------------------------------
1 | class InterleavedIRaiseOnDown < ActiveRecord::Migration
2 | def self.up
3 | end
4 |
5 | def self.down
6 | raise
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/activeresource/test/fixtures/sound.rb:
--------------------------------------------------------------------------------
1 | module Asset
2 | class Sound < ActiveResource::Base
3 | self.site = "http://37s.sunrise.i:3000"
4 | end
5 | end
6 |
7 | # to test namespacing in a module
8 | class Author
9 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require ::File.expand_path('../config/environment', __FILE__)
4 | run <%= app_const %>
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_with_layout_block_content.erb:
--------------------------------------------------------------------------------
1 | <%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %>
2 | Content from inside layout!
3 | <% end %>
4 | partial with layout
5 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/_partial_with_layout_block_partial.erb:
--------------------------------------------------------------------------------
1 | <%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %>
2 | <%= render 'test/partial' %>
3 | <% end %>
4 | partial with layout
5 |
--------------------------------------------------------------------------------
/version.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/utf8_magic_with_bare_partial.html.erb:
--------------------------------------------------------------------------------
1 | <%# encoding: utf-8 -%>
2 | Русский <%= render :partial => 'test/utf8_partial' %>
3 | <%= "日".encoding %>
4 | <%= @output_buffer.encoding %>
5 | <%= __ENCODING__ %>
6 |
--------------------------------------------------------------------------------
/activemodel/test/models/track_back.rb:
--------------------------------------------------------------------------------
1 | class Post
2 | class TrackBack
3 | def to_model
4 | NamedTrackBack.new
5 | end
6 | end
7 |
8 | class NamedTrackBack
9 | extend ActiveModel::Naming
10 | end
11 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/string/behavior.rb:
--------------------------------------------------------------------------------
1 | class String
2 | # Enable more predictable duck-typing on String-like classes. See
3 | # Object#acts_like?.
4 | def acts_like_string?
5 | true
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/config/environment.rb:
--------------------------------------------------------------------------------
1 | # Load the rails application
2 | require File.expand_path('../application', __FILE__)
3 |
4 | # Initialize the rails application
5 | <%= app_const %>.initialize!
6 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/generator/templates/USAGE.tt:
--------------------------------------------------------------------------------
1 | Description:
2 | Explain the generator
3 |
4 | Example:
5 | rails generate <%= file_name %> Thing
6 |
7 | This will create:
8 | what/will/it/create
9 |
--------------------------------------------------------------------------------
/railties/test/fixtures/lib/generators/active_record/fixjour_generator.rb:
--------------------------------------------------------------------------------
1 | require 'rails/generators/active_record'
2 |
3 | module ActiveRecord
4 | module Generators
5 | class FixjourGenerator < Base
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/none:
--------------------------------------------------------------------------------
1 | --AaB03x
2 | Content-Disposition: form-data; name="submit-name"
3 |
4 | Larry
5 | --AaB03x
6 | Content-Disposition: form-data; name="files"; filename=""
7 |
8 |
9 | --AaB03x--
10 |
--------------------------------------------------------------------------------
/bin/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | begin
4 | require "rails/cli"
5 | rescue LoadError
6 | railties_path = File.expand_path('../../railties/lib', __FILE__)
7 | $:.unshift(railties_path)
8 | require "rails/cli"
9 | end
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/public/javascripts/application.js:
--------------------------------------------------------------------------------
1 | // Place your application-specific JavaScript functions and classes here
2 | // This file is automatically included by javascript_include_tag :defaults
3 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/observer/observer_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class ObserverGenerator < NamedBase #metagenerator
4 | hook_for :orm, :required => true
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb:
--------------------------------------------------------------------------------
1 | module <%= camelized %>
2 | class Engine < Rails::Engine
3 | <% if mountable? -%>
4 | isolate_namespace <%= camelized %>
5 | <% end -%>
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/hello_xml_world.builder:
--------------------------------------------------------------------------------
1 | xml.html do
2 | xml.head do
3 | xml.title "Hello World"
4 | end
5 |
6 | xml.body do
7 | xml.p "abes"
8 | xml.p "monks"
9 | xml.p "wiseguys"
10 | end
11 | end
--------------------------------------------------------------------------------
/activerecord/test/models/membership.rb:
--------------------------------------------------------------------------------
1 | class Membership < ActiveRecord::Base
2 | belongs_to :member
3 | belongs_to :club
4 | end
5 |
6 | class CurrentMembership < Membership
7 | belongs_to :member
8 | belongs_to :club
9 | end
10 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/integer/multiple.rb:
--------------------------------------------------------------------------------
1 | class Integer
2 | # Check whether the integer is evenly divisible by the argument.
3 | def multiple_of?(number)
4 | number != 0 ? self % number == 0 : zero?
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/railties/lib/rails/version.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/actionpack/lib/action_controller/metal/session_management.rb:
--------------------------------------------------------------------------------
1 | module ActionController #:nodoc:
2 | module SessionManagement #:nodoc:
3 | extend ActiveSupport::Concern
4 |
5 | module ClassMethods
6 |
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/pets.yml:
--------------------------------------------------------------------------------
1 | parrot:
2 | pet_id: 1
3 | name: parrot
4 | owner_id: 1
5 |
6 | chew:
7 | pet_id: 2
8 | name: chew
9 | owner_id: 2
10 |
11 | mochi:
12 | pet_id: 3
13 | name: mochi
14 | owner_id: 2
15 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/reserved_words/group.yml:
--------------------------------------------------------------------------------
1 | group1:
2 | id: 1
3 | select_id: 1
4 | order: x
5 |
6 | group2:
7 | id: 2
8 | select_id: 2
9 | order: y
10 |
11 | group3:
12 | id: 3
13 | select_id: 2
14 | order: z
15 |
--------------------------------------------------------------------------------
/activerecord/test/models/minivan.rb:
--------------------------------------------------------------------------------
1 | class Minivan < ActiveRecord::Base
2 | set_primary_key :minivan_id
3 |
4 | belongs_to :speedometer
5 | has_one :dashboard, :through => :speedometer
6 |
7 | attr_readonly :color
8 |
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/models/subscriber.rb:
--------------------------------------------------------------------------------
1 | class Subscriber < ActiveRecord::Base
2 | set_primary_key 'nick'
3 | has_many :subscriptions
4 | has_many :books, :through => :subscriptions
5 | end
6 |
7 | class SpecialSubscriber < Subscriber
8 | end
9 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/builder.rb:
--------------------------------------------------------------------------------
1 | begin
2 | require 'builder'
3 | rescue LoadError => e
4 | $stderr.puts "You don't have builder installed in your application. Please add it to your Gemfile and run bundle install"
5 | raise e
6 | end
7 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/string/exclude.rb:
--------------------------------------------------------------------------------
1 | class String
2 | # The inverse of String#include?. Returns true if the string does not include the other string.
3 | def exclude?(string)
4 | !include?(string)
5 | end
6 | end
7 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class <%= camelized %>Test < ActiveSupport::TestCase
4 | test "truth" do
5 | assert_kind_of Module, <%= camelized %>
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.js.rjs:
--------------------------------------------------------------------------------
1 | page.assign 'title', 'Hey'
2 | cache do
3 | page['element_1'].visual_effect :highlight
4 | page['element_2'].visual_effect :highlight
5 | end
6 | page.assign 'footer', 'Bye'
7 |
--------------------------------------------------------------------------------
/activemodel/test/models/blog_post.rb:
--------------------------------------------------------------------------------
1 | module Blog
2 | def self._railtie
3 | Object.new
4 | end
5 |
6 | def self.table_name_prefix
7 | "blog_"
8 | end
9 |
10 | class Post
11 | extend ActiveModel::Naming
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/date/acts_like.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/object/acts_like'
2 |
3 | class Date
4 | # Duck-types as a Date-like class. See Object#acts_like?.
5 | def acts_like_date?
6 | true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/time/acts_like.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/object/acts_like'
2 |
3 | class Time
4 | # Duck-types as a Time-like class. See Object#acts_like?.
5 | def acts_like_time?
6 | true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/time/autoload.rb:
--------------------------------------------------------------------------------
1 | module ActiveSupport
2 | autoload :Duration, 'active_support/duration'
3 | autoload :TimeWithZone, 'active_support/time_with_zone'
4 | autoload :TimeZone, 'active_support/values/time_zone'
5 | end
6 |
--------------------------------------------------------------------------------
/actionpack/lib/action_pack/version.rb:
--------------------------------------------------------------------------------
1 | module ActionPack
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/test/enum_rjs_test.rjs:
--------------------------------------------------------------------------------
1 | page.select('.product').each do |value|
2 | page.visual_effect :highlight
3 | page.visual_effect :highlight, value
4 | page.sortable(value, :url => { :action => "order" })
5 | page.draggable(value)
6 | end
--------------------------------------------------------------------------------
/activerecord/test/fixtures/entrants.yml:
--------------------------------------------------------------------------------
1 | first:
2 | id: 1
3 | course_id: 1
4 | name: Ruby Developer
5 |
6 | second:
7 | id: 2
8 | course_id: 1
9 | name: Ruby Guru
10 |
11 | third:
12 | id: 3
13 | course_id: 2
14 | name: Java Lover
15 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/tasks.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 | first_task:
3 | id: 1
4 | starting: 2005-03-30t06:30:00.00+01:00
5 | ending: 2005-03-30t08:30:00.00+01:00
6 | another_task:
7 | id: 2
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/erb/scaffold/templates/edit.html.erb:
--------------------------------------------------------------------------------
1 | Editing <%= singular_table_name %>
2 |
3 | <%%= render 'form' %>
4 |
5 | <%%= link_to 'Show', @<%= singular_table_name %> %> |
6 | <%%= link_to 'Back', <%= index_helper %>_path %>
7 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/integration_test/integration_test_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class IntegrationTestGenerator < NamedBase
4 | hook_for :integration_tool, :as => :integration
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/performance_test/performance_test_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class PerformanceTestGenerator < NamedBase
4 | hook_for :performance_tool, :as => :performance
5 | end
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/actionmailer/lib/action_mailer/version.rb:
--------------------------------------------------------------------------------
1 | module ActionMailer
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activemodel/lib/active_model/version.rb:
--------------------------------------------------------------------------------
1 | module ActiveModel
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activerecord/lib/active_record/version.rb:
--------------------------------------------------------------------------------
1 | module ActiveRecord
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activerecord/lib/rails/generators/active_record/model/templates/module.rb:
--------------------------------------------------------------------------------
1 | <% module_namespacing do -%>
2 | module <%= class_path.map(&:camelize).join('::') %>
3 | def self.table_name_prefix
4 | '<%= class_path.join('_') %>_'
5 | end
6 | end
7 | <% end -%>
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/faces.yml:
--------------------------------------------------------------------------------
1 | trusting:
2 | description: trusting
3 | man: gordon
4 |
5 | weather_beaten:
6 | description: weather beaten
7 | man: steve
8 |
9 | confused:
10 | description: confused
11 | polymorphic_man: gordon (Man)
12 |
--------------------------------------------------------------------------------
/activerecord/test/models/order.rb:
--------------------------------------------------------------------------------
1 | class Order < ActiveRecord::Base
2 | belongs_to :billing, :class_name => 'Customer', :foreign_key => 'billing_customer_id'
3 | belongs_to :shipping, :class_name => 'Customer', :foreign_key => 'shipping_customer_id'
4 | end
5 |
--------------------------------------------------------------------------------
/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb:
--------------------------------------------------------------------------------
1 | module HTML #:nodoc:
2 | module Version #:nodoc:
3 |
4 | MAJOR = 0
5 | MINOR = 5
6 | TINY = 3
7 |
8 | STRING = [ MAJOR, MINOR, TINY ].join(".")
9 |
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/activerecord/test/config.rb:
--------------------------------------------------------------------------------
1 | TEST_ROOT = File.expand_path(File.dirname(__FILE__))
2 | ASSETS_ROOT = TEST_ROOT + "/assets"
3 | FIXTURES_ROOT = TEST_ROOT + "/fixtures"
4 | MIGRATIONS_ROOT = TEST_ROOT + "/migrations"
5 | SCHEMA_ROOT = TEST_ROOT + "/schema"
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/pirates.yml:
--------------------------------------------------------------------------------
1 | blackbeard:
2 | catchphrase: "Yar."
3 | parrot: george
4 |
5 | redbeard:
6 | catchphrase: "Avast!"
7 | parrot: louis
8 | created_on: <%= 2.weeks.ago.to_s(:db) %>
9 | updated_on: <%= 2.weeks.ago.to_s(:db) %>
10 |
--------------------------------------------------------------------------------
/activerecord/test/models/tag.rb:
--------------------------------------------------------------------------------
1 | class Tag < ActiveRecord::Base
2 | has_many :taggings
3 | has_many :taggables, :through => :taggings
4 | has_one :tagging
5 |
6 | has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post'
7 | end
--------------------------------------------------------------------------------
/activeresource/lib/active_resource/version.rb:
--------------------------------------------------------------------------------
1 | module ActiveResource
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/multibyte/exceptions.rb:
--------------------------------------------------------------------------------
1 | # encoding: utf-8
2 |
3 | module ActiveSupport #:nodoc:
4 | module Multibyte #:nodoc:
5 | # Raised when a problem with the encoding was found.
6 | class EncodingError < StandardError; end
7 | end
8 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/version.rb:
--------------------------------------------------------------------------------
1 | module ActiveSupport
2 | module VERSION #:nodoc:
3 | MAJOR = 3
4 | MINOR = 1
5 | TINY = 0
6 | PRE = "beta"
7 |
8 | STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/reserved_words/distincts_selects.yml:
--------------------------------------------------------------------------------
1 | distincts_selects1:
2 | distinct_id: 1
3 | select_id: 1
4 |
5 | distincts_selects2:
6 | distinct_id: 1
7 | select_id: 2
8 |
9 | distincts_selects3:
10 | distinct_id: 2
11 | select_id: 3
12 |
--------------------------------------------------------------------------------
/activerecord/test/models/interest.rb:
--------------------------------------------------------------------------------
1 | class Interest < ActiveRecord::Base
2 | belongs_to :man, :inverse_of => :interests
3 | belongs_to :polymorphic_man, :polymorphic => true, :inverse_of => :polymorphic_interests
4 | belongs_to :zine, :inverse_of => :interests
5 | end
6 |
--------------------------------------------------------------------------------
/activerecord/test/models/treasure.rb:
--------------------------------------------------------------------------------
1 | class Treasure < ActiveRecord::Base
2 | has_and_belongs_to_many :parrots
3 | belongs_to :looter, :polymorphic => true
4 |
5 | has_many :price_estimates, :as => :estimate_of
6 |
7 | accepts_nested_attributes_for :looter
8 | end
9 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/range.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/range/blockless_step'
2 | require 'active_support/core_ext/range/conversions'
3 | require 'active_support/core_ext/range/include_range'
4 | require 'active_support/core_ext/range/overlaps'
5 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/string/encoding.rb:
--------------------------------------------------------------------------------
1 | class String
2 | if defined?(Encoding) && "".respond_to?(:encode)
3 | def encoding_aware?
4 | true
5 | end
6 | else
7 | def encoding_aware?
8 | false
9 | end
10 | end
11 | end
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class <%= class_name %>Test < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | test "the truth" do
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/empty:
--------------------------------------------------------------------------------
1 | --AaB03x
2 | Content-Disposition: form-data; name="submit-name"
3 |
4 | Larry
5 | --AaB03x
6 | Content-Disposition: form-data; name="files"; filename="file1.txt"
7 | Content-Type: text/plain
8 |
9 |
10 | --AaB03x--
11 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/multipart/text_file:
--------------------------------------------------------------------------------
1 | --AaB03x
2 | Content-Disposition: form-data; name="foo"
3 |
4 | bar
5 | --AaB03x
6 | Content-Disposition: form-data; name="file"; filename="file.txt"
7 | Content-Type: text/plain
8 |
9 | contents
10 | --AaB03x--
11 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/categories/special_categories.yml:
--------------------------------------------------------------------------------
1 | sub_special_1:
2 | id: 100
3 | name: A special category in a subdir file
4 | type: SpecialCategory
5 |
6 | sub_special_2:
7 | id: 101
8 | name: Another special category
9 | type: SpecialCategory
10 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/duplicate/1_people_have_last_names.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "last_name"
8 | end
9 | end
--------------------------------------------------------------------------------
/activerecord/test/migrations/missing/1_people_have_last_names.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "last_name"
8 | end
9 | end
--------------------------------------------------------------------------------
/activerecord/test/models/ship_part.rb:
--------------------------------------------------------------------------------
1 | class ShipPart < ActiveRecord::Base
2 | belongs_to :ship
3 | has_many :trinkets, :class_name => "Treasure", :as => :looter
4 | accepts_nested_attributes_for :trinkets, :allow_destroy => true
5 |
6 | validates_presence_of :name
7 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/object/conversions.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/object/to_param'
2 | require 'active_support/core_ext/object/to_query'
3 | require 'active_support/core_ext/array/conversions'
4 | require 'active_support/core_ext/hash/conversions'
5 |
--------------------------------------------------------------------------------
/railties/lib/rails/rack.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Rack
3 | autoload :Debugger, "rails/rack/debugger"
4 | autoload :Logger, "rails/rack/logger"
5 | autoload :LogTailer, "rails/rack/log_tailer"
6 | autoload :Static, "rails/rack/static"
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/railties/lib/rails/tasks/log.rake:
--------------------------------------------------------------------------------
1 | namespace :log do
2 | desc "Truncates all *.log files in log/ to zero bytes"
3 | task :clear do
4 | FileList["log/*.log"].each do |log_file|
5 | f = File.open(log_file, "w")
6 | f.close
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/actionpack/lib/action_controller/deprecated.rb:
--------------------------------------------------------------------------------
1 | ActionController::AbstractRequest = ActionController::Request = ActionDispatch::Request
2 | ActionController::AbstractResponse = ActionController::Response = ActionDispatch::Response
3 | ActionController::Routing = ActionDispatch::Routing
--------------------------------------------------------------------------------
/activerecord/test/fixtures/categories.yml:
--------------------------------------------------------------------------------
1 | general:
2 | id: 1
3 | name: General
4 | type: Category
5 |
6 | technology:
7 | id: 2
8 | name: Technology
9 | type: Category
10 |
11 | sti_test:
12 | id: 3
13 | name: Special category
14 | type: SpecialCategory
15 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy/1_people_have_hobbies.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "hobbies", :text
4 | end
5 |
6 | def self.down
7 | remove_column "people", "hobbies"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/models/edge.rb:
--------------------------------------------------------------------------------
1 | # This class models an edge in a directed graph.
2 | class Edge < ActiveRecord::Base
3 | belongs_to :source, :class_name => 'Vertex', :foreign_key => 'source_id'
4 | belongs_to :sink, :class_name => 'Vertex', :foreign_key => 'sink_id'
5 | end
6 |
--------------------------------------------------------------------------------
/railties/guides/assets/images/icons/README:
--------------------------------------------------------------------------------
1 | Replaced the plain DocBook XSL admonition icons with Jimmac's DocBook
2 | icons (http://jimmac.musichall.cz/ikony.php3). I dropped transparency
3 | from the Jimmac icons to get round MS IE and FOP PNG incompatibilies.
4 |
5 | Stuart Rackham
6 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/doc/README_FOR_APP:
--------------------------------------------------------------------------------
1 | Use this README file to introduce your application and point to useful places in the API for learning more.
2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
3 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/controller/templates/controller.rb:
--------------------------------------------------------------------------------
1 | <% module_namespacing do -%>
2 | class <%= class_name %>Controller < ApplicationController
3 | <% for action in actions -%>
4 | def <%= action %>
5 | end
6 |
7 | <% end -%>
8 | end
9 | <% end -%>
10 |
--------------------------------------------------------------------------------
/actionpack/lib/abstract_controller/asset_paths.rb:
--------------------------------------------------------------------------------
1 | module AbstractController
2 | module AssetPaths
3 | extend ActiveSupport::Concern
4 |
5 | included do
6 | config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir
7 | end
8 | end
9 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/developer.rb:
--------------------------------------------------------------------------------
1 | class Developer < ActiveRecord::Base
2 | has_and_belongs_to_many :projects
3 | has_many :replies
4 | has_many :topics, :through => :replies
5 | end
6 |
7 | class DeVeLoPeR < ActiveRecord::Base
8 | set_table_name "developers"
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/missing/1000_people_have_middle_names.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveMiddleNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "middle_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "middle_name"
8 | end
9 | end
--------------------------------------------------------------------------------
/activesupport/test/gzip_test.rb:
--------------------------------------------------------------------------------
1 | require 'abstract_unit'
2 |
3 | class GzipTest < Test::Unit::TestCase
4 | def test_compress_should_decompress_to_the_same_value
5 | assert_equal "Hello World", ActiveSupport::Gzip.decompress(ActiveSupport::Gzip.compress("Hello World"))
6 | end
7 | end
--------------------------------------------------------------------------------
/railties/lib/rails/commands/update.rb:
--------------------------------------------------------------------------------
1 | require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators'))
2 |
3 | if ARGV.size == 0
4 | Rails::Generators.help
5 | exit
6 | end
7 |
8 | name = ARGV.shift
9 | Rails::Generators.invoke name, ARGV, :behavior => :skip
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2 | #
3 | # To ban all spiders from the entire site uncomment the next two lines:
4 | # User-Agent: *
5 | # Disallow: /
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/subscriptions.yml:
--------------------------------------------------------------------------------
1 | webster_awdr:
2 | id: 1
3 | subscriber_id: webster132
4 | book_id: 1
5 | webster_rfr:
6 | id: 2
7 | subscriber_id: webster132
8 | book_id: 2
9 | alterself_awdr:
10 | id: 3
11 | subscriber_id: alterself
12 | book_id: 1
13 |
--------------------------------------------------------------------------------
/activerecord/test/models/reference.rb:
--------------------------------------------------------------------------------
1 | class Reference < ActiveRecord::Base
2 | belongs_to :person
3 | belongs_to :job
4 | end
5 |
6 | class BadReference < ActiveRecord::Base
7 | self.table_name ='references'
8 | default_scope :conditions => {:favourite => false }
9 | end
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/commands/plugin_new.rb:
--------------------------------------------------------------------------------
1 | if ARGV.first != "new"
2 | ARGV[0] = "--help"
3 | else
4 | ARGV.shift
5 | end
6 |
7 | require 'rails/generators'
8 | require 'rails/generators/rails/plugin_new/plugin_new_generator'
9 |
10 | Rails::Generators::PluginNewGenerator.start
11 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/Gemfile:
--------------------------------------------------------------------------------
1 | source "http://rubygems.org"
2 |
3 | <%= rails_gemfile_entry -%>
4 |
5 | <% if full? -%>
6 | <%= database_gemfile_entry -%>
7 | <% end -%>
8 |
9 | if RUBY_VERSION < '1.9'
10 | gem "ruby-debug", ">= 0.10.3"
11 | end
12 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/session_autoload_test/session_autoload_test/foo.rb:
--------------------------------------------------------------------------------
1 | module SessionAutoloadTest
2 | class Foo
3 | def initialize(bar='baz')
4 | @bar = bar
5 | end
6 | def inspect
7 | "#<#{self.class} bar:#{@bar.inspect}>"
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy/2_people_have_descriptions.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "description", :text
4 | end
5 |
6 | def self.down
7 | remove_column "people", "description"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/models/bird.rb:
--------------------------------------------------------------------------------
1 | class Bird < ActiveRecord::Base
2 | validates_presence_of :name
3 |
4 | attr_accessor :cancel_save_from_callback
5 | before_save :cancel_save_callback_method, :if => :cancel_save_from_callback
6 | def cancel_save_callback_method
7 | false
8 | end
9 | end
--------------------------------------------------------------------------------
/railties/guides/assets/javascripts/guides.js:
--------------------------------------------------------------------------------
1 | function guideMenu(){
2 | if (document.getElementById('guides').style.display == "none") {
3 | document.getElementById('guides').style.display = "block";
4 | } else {
5 | document.getElementById('guides').style.display = "none";
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/all.rb:
--------------------------------------------------------------------------------
1 | require "rails"
2 |
3 | %w(
4 | active_record
5 | action_controller
6 | action_mailer
7 | active_resource
8 | rails/test_unit
9 | ).each do |framework|
10 | begin
11 | require "#{framework}/railtie"
12 | rescue LoadError
13 | end
14 | end
15 |
--------------------------------------------------------------------------------
/railties/lib/rails/console/sandbox.rb:
--------------------------------------------------------------------------------
1 | ActiveRecord::Base.connection.increment_open_transactions
2 | ActiveRecord::Base.connection.begin_db_transaction
3 | at_exit do
4 | ActiveRecord::Base.connection.rollback_db_transaction
5 | ActiveRecord::Base.connection.decrement_open_transactions
6 | end
7 |
--------------------------------------------------------------------------------
/railties/lib/rails/tasks/middleware.rake:
--------------------------------------------------------------------------------
1 | desc 'Prints out your Rack middleware stack'
2 | task :middleware => :environment do
3 | Rails.configuration.middleware.each do |middleware|
4 | puts "use #{middleware.inspect}"
5 | end
6 | puts "run #{Rails.application.class.name}.routes"
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/parrots_pirates.yml:
--------------------------------------------------------------------------------
1 | george_blackbeard:
2 | parrot_id: <%= Fixtures.identify(:george) %>
3 | pirate_id: <%= Fixtures.identify(:blackbeard) %>
4 |
5 | louis_blackbeard:
6 | parrot_id: <%= Fixtures.identify(:louis) %>
7 | pirate_id: <%= Fixtures.identify(:blackbeard) %>
8 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/valid/1_valid_people_have_last_names.rb:
--------------------------------------------------------------------------------
1 | class ValidPeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "last_name"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new mime types for use in respond_to blocks:
4 | # Mime::Type.register "text/richtext", :rtf
5 | # Mime::Type.register_alias "text/html", :iphone
6 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/config/locales/en.yml:
--------------------------------------------------------------------------------
1 | # Sample localization file for English. Add more files in this directory for other locales.
2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3 |
4 | en:
5 | hello: "Hello world"
6 |
--------------------------------------------------------------------------------
/activemodel/test/models/automobile.rb:
--------------------------------------------------------------------------------
1 | class Automobile
2 | include ActiveModel::Validations
3 |
4 | validate :validations
5 |
6 | attr_accessor :make, :model
7 |
8 | def validations
9 | validates_presence_of :make
10 | validates_length_of :model, :within => 2..10
11 | end
12 | end
--------------------------------------------------------------------------------
/activemodel/test/validators/email_validator.rb:
--------------------------------------------------------------------------------
1 | class EmailValidator < ActiveModel::EachValidator
2 | def validate_each(record, attribute, value)
3 | record.errors[attribute] << (options[:message] || "is not an email") unless
4 | value =~ /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
5 | end
6 | end
--------------------------------------------------------------------------------
/activerecord/test/models/book.rb:
--------------------------------------------------------------------------------
1 | class Book < ActiveRecord::Base
2 | has_many :citations, :foreign_key => 'book1_id'
3 | has_many :references, :through => :citations, :source => :reference_of, :uniq => true
4 |
5 | has_many :subscriptions
6 | has_many :subscribers, :through => :subscriptions
7 | end
8 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy_with_timestamps/20090101010101_people_have_hobbies.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "hobbies", :text
4 | end
5 |
6 | def self.down
7 | remove_column "people", "hobbies"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/models/citation.rb:
--------------------------------------------------------------------------------
1 | class Citation < ActiveRecord::Base
2 | belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id
3 |
4 | belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id
5 | belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id
6 | end
7 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/company.rb:
--------------------------------------------------------------------------------
1 | class Company < ActiveRecord::Base
2 | has_one :mascot
3 | attr_protected :rating
4 | set_sequence_name :companies_nonstd_seq
5 |
6 | validates_presence_of :name
7 | def validate
8 | errors.add('rating', 'rating should not be 2') if rating == 2
9 | end
10 | end
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/partial_with_layout.erb:
--------------------------------------------------------------------------------
1 | <%= render( :layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => {:name => 'Anthony' } ) %>
2 | <%= yield %>
3 | <%= render( :layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => {:name => 'Ramm' } ) %>
--------------------------------------------------------------------------------
/activerecord/lib/rails/generators/active_record/model/templates/model.rb:
--------------------------------------------------------------------------------
1 | <% module_namespacing do -%>
2 | class <%= class_name %> < <%= parent_class_name.classify %>
3 | <% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
4 | belongs_to :<%= attribute.name %>
5 | <% end -%>
6 | end
7 | <% end -%>
8 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/range/overlaps.rb:
--------------------------------------------------------------------------------
1 | class Range
2 | # Compare two ranges and see if they overlap each other
3 | # (1..5).overlaps?(4..6) # => true
4 | # (1..5).overlaps?(7..9) # => false
5 | def overlaps?(other)
6 | include?(other.first) || other.include?(first)
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class <%= class_name %>Test < ActionDispatch::IntegrationTest
4 | fixtures :all
5 |
6 | # Replace this with your real tests.
7 | test "the truth" do
8 | assert true
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/model/templates/unit_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | <% module_namespacing do -%>
4 | class <%= class_name %>Test < ActiveSupport::TestCase
5 | # Replace this with your real tests.
6 | test "the truth" do
7 | assert true
8 | end
9 | end
10 | <% end -%>
11 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 | HTML formatted message to <%= @recipient %>.
4 |
5 |
6 |
7 |
8 | HTML formatted message to <%= @recipient %>.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.html.erb~:
--------------------------------------------------------------------------------
1 |
2 |
3 | HTML formatted message to <%= @recipient %>.
4 |
5 |
6 |
7 |
8 | HTML formatted message to <%= @recipient %>.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/developers_projects.yml:
--------------------------------------------------------------------------------
1 | david_action_controller:
2 | developer_id: 1
3 | project_id: 2
4 | joined_on: 2004-10-10
5 |
6 | david_active_record:
7 | developer_id: 1
8 | project_id: 1
9 | joined_on: 2004-10-10
10 |
11 | jamis_active_record:
12 | developer_id: 2
13 | project_id: 1
--------------------------------------------------------------------------------
/activerecord/test/migrations/to_copy_with_timestamps/20090101010202_people_have_descriptions.rb:
--------------------------------------------------------------------------------
1 | class PeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "description", :text
4 | end
5 |
6 | def self.down
7 | remove_column "people", "description"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/tasks.rb:
--------------------------------------------------------------------------------
1 | $VERBOSE = nil
2 |
3 | # Load Rails rakefile extensions
4 | %w(
5 | annotations
6 | documentation
7 | framework
8 | log
9 | middleware
10 | misc
11 | routes
12 | statistics
13 | tmp
14 | railties
15 | ).each do |task|
16 | load "rails/tasks/#{task}.rake"
17 | end
18 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/interleaved/pass_2/1_interleaved_people_have_last_names.rb:
--------------------------------------------------------------------------------
1 | class InterleavedPeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "last_name"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/interleaved/pass_3/1_interleaved_people_have_last_names.rb:
--------------------------------------------------------------------------------
1 | class InterleavedPeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "last_name"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/kernel.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/kernel/reporting'
2 | require 'active_support/core_ext/kernel/agnostics'
3 | require 'active_support/core_ext/kernel/requires'
4 | require 'active_support/core_ext/kernel/debugger'
5 | require 'active_support/core_ext/kernel/singleton_class'
6 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/model/model_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class ModelGenerator < NamedBase #metagenerator
4 | argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
5 | hook_for :orm, :required => true
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class NavigationTest < ActionDispatch::IntegrationTest
4 | fixtures :all
5 |
6 | # Replace this with your real tests.
7 | test "the truth" do
8 | assert true
9 | end
10 | end
11 |
12 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 | require 'rails/performance_test_help'
3 |
4 | class <%= class_name %>Test < ActionDispatch::PerformanceTest
5 | # Replace this with your real tests.
6 | def test_homepage
7 | get '/'
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/actionpack/lib/abstract_controller/translation.rb:
--------------------------------------------------------------------------------
1 | module AbstractController
2 | module Translation
3 | def translate(*args)
4 | I18n.translate(*args)
5 | end
6 | alias :t :translate
7 |
8 | def localize(*args)
9 | I18n.localize(*args)
10 | end
11 | alias :l :localize
12 | end
13 | end
--------------------------------------------------------------------------------
/activemodel/test/models/custom_reader.rb:
--------------------------------------------------------------------------------
1 | class CustomReader
2 | include ActiveModel::Validations
3 |
4 | def initialize(data = {})
5 | @data = data
6 | end
7 |
8 | def []=(key, value)
9 | @data[key] = value
10 | end
11 |
12 | def read_attribute_for_validation(key)
13 | @data[key]
14 | end
15 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/module/remove_method.rb:
--------------------------------------------------------------------------------
1 | class Module
2 | def remove_possible_method(method)
3 | remove_method(method)
4 | rescue NameError
5 | end
6 |
7 | def redefine_method(method, &block)
8 | remove_possible_method(method)
9 | define_method(method, &block)
10 | end
11 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/json/variable.rb:
--------------------------------------------------------------------------------
1 | module ActiveSupport
2 | module JSON
3 | # A string that returns itself as its JSON-encoded form.
4 | class Variable < String
5 | def as_json(options = nil) self end #:nodoc:
6 | def encode_json(encoder) self end #:nodoc:
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin/templates/README.tt:
--------------------------------------------------------------------------------
1 | <%= class_name %>
2 | <%= "=" * class_name.size %>
3 |
4 | Introduction goes here.
5 |
6 |
7 | Example
8 | =======
9 |
10 | Example goes here.
11 |
12 |
13 | Copyright (c) <%= Date.today.year %> [name of plugin creator], released under the MIT license
14 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/observer/templates/unit_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | <% module_namespacing do -%>
4 | class <%= class_name %>ObserverTest < ActiveSupport::TestCase
5 | # Replace this with your real tests.
6 | test "the truth" do
7 | assert true
8 | end
9 | end
10 | <% end -%>
11 |
--------------------------------------------------------------------------------
/activerecord/test/models/shop.rb:
--------------------------------------------------------------------------------
1 | module Shop
2 | class Collection < ActiveRecord::Base
3 | has_many :products, :dependent => :nullify
4 | end
5 |
6 | class Product < ActiveRecord::Base
7 | has_many :variants, :dependent => :delete_all
8 | end
9 |
10 | class Variant < ActiveRecord::Base
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/migration/migration_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class MigrationGenerator < NamedBase #metagenerator
4 | argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
5 | hook_for :orm, :required => true
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/session_migration/session_migration_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class SessionMigrationGenerator < NamedBase #metagenerator
4 | argument :name, :type => :string, :default => "add_sessions_table"
5 | hook_for :orm, :required => true
6 | end
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/stylesheets/stylesheets_generator.rb:
--------------------------------------------------------------------------------
1 | module Rails
2 | module Generators
3 | class StylesheetsGenerator < Base
4 | def copy_stylesheets_file
5 | template "scaffold.css", "public/stylesheets/scaffold.css" if behavior == :invoke
6 | end
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/cases/adapters/firebird/connection_test.rb:
--------------------------------------------------------------------------------
1 | require "cases/helper"
2 |
3 | class FirebirdConnectionTest < ActiveRecord::TestCase
4 | def test_charset_properly_set
5 | fb_conn = ActiveRecord::Base.connection.instance_variable_get(:@connection)
6 | assert_equal 'UTF8', fb_conn.database.character_set
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/references.yml:
--------------------------------------------------------------------------------
1 | michael_magician:
2 | id: 1
3 | person_id: 1
4 | job_id: 3
5 | favourite: false
6 |
7 | michael_unicyclist:
8 | id: 2
9 | person_id: 1
10 | job_id: 1
11 | favourite: true
12 |
13 | david_unicyclist:
14 | id: 3
15 | person_id: 2
16 | job_id: 1
17 | favourite: false
18 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb:
--------------------------------------------------------------------------------
1 | class MigrationThatRaisesException < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | raise 'Something broke'
5 | end
6 |
7 | def self.down
8 | remove_column "people", "last_name"
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/valid/2_we_need_reminders.rb:
--------------------------------------------------------------------------------
1 | class WeNeedReminders < ActiveRecord::Migration
2 | def self.up
3 | create_table("reminders") do |t|
4 | t.column :content, :text
5 | t.column :remind_at, :datetime
6 | end
7 | end
8 |
9 | def self.down
10 | drop_table "reminders"
11 | end
12 | end
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/module/reachable.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/module/anonymous'
2 | require 'active_support/core_ext/string/inflections'
3 |
4 | class Module
5 | def reachable? #:nodoc:
6 | !anonymous? && name.constantize.equal?(self)
7 | rescue NameError
8 | false
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/railties/lib/rails/commands/destroy.rb:
--------------------------------------------------------------------------------
1 | require 'rails/generators'
2 | Rails::Generators.configure!
3 |
4 | if [nil, "-h", "--help"].include?(ARGV.first)
5 | Rails::Generators.help 'destroy'
6 | exit
7 | end
8 |
9 | name = ARGV.shift
10 | Rails::Generators.invoke name, ARGV, :behavior => :revoke, :destination_root => Rails.root
11 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/erb/mailer/mailer_generator.rb:
--------------------------------------------------------------------------------
1 | require 'rails/generators/erb/controller/controller_generator'
2 |
3 | module Erb
4 | module Generators
5 | class MailerGenerator < ControllerGenerator
6 | protected
7 |
8 | def format
9 | :text
10 | end
11 | end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/duplicate/2_we_need_reminders.rb:
--------------------------------------------------------------------------------
1 | class WeNeedReminders < ActiveRecord::Migration
2 | def self.up
3 | create_table("reminders") do |t|
4 | t.column :content, :text
5 | t.column :remind_at, :datetime
6 | end
7 | end
8 |
9 | def self.down
10 | drop_table "reminders"
11 | end
12 | end
--------------------------------------------------------------------------------
/activerecord/test/migrations/missing/3_we_need_reminders.rb:
--------------------------------------------------------------------------------
1 | class WeNeedReminders < ActiveRecord::Migration
2 | def self.up
3 | create_table("reminders") do |t|
4 | t.column :content, :text
5 | t.column :remind_at, :datetime
6 | end
7 | end
8 |
9 | def self.down
10 | drop_table "reminders"
11 | end
12 | end
--------------------------------------------------------------------------------
/railties/lib/rails/commands/generate.rb:
--------------------------------------------------------------------------------
1 | require 'rails/generators'
2 | Rails::Generators.configure!
3 |
4 | if [nil, "-h", "--help"].include?(ARGV.first)
5 | Rails::Generators.help 'generate'
6 | exit
7 | end
8 |
9 | name = ARGV.shift
10 | Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root
11 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb:
--------------------------------------------------------------------------------
1 | require 'rubygems'
2 | gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3 |
4 | if File.exist?(gemfile)
5 | ENV['BUNDLE_GEMFILE'] = gemfile
6 | require 'bundler'
7 | Bundler.setup
8 | end
9 |
10 | $:.unshift File.expand_path('../../../../lib', __FILE__)
--------------------------------------------------------------------------------
/activerecord/test/fixtures/categorizations.yml:
--------------------------------------------------------------------------------
1 | david_welcome_general:
2 | id: 1
3 | author_id: 1
4 | post_id: 1
5 | category_id: 1
6 |
7 | mary_thinking_sti:
8 | id: 2
9 | author_id: 2
10 | post_id: 2
11 | category_id: 3
12 |
13 | mary_thinking_general:
14 | id: 3
15 | author_id: 2
16 | post_id: 2
17 | category_id: 1
18 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/class.rb:
--------------------------------------------------------------------------------
1 | require 'active_support/core_ext/class/attribute'
2 | require 'active_support/core_ext/class/attribute_accessors'
3 | require 'active_support/core_ext/class/inheritable_attributes'
4 | require 'active_support/core_ext/class/delegating_attributes'
5 | require 'active_support/core_ext/class/subclasses'
6 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/core_ext/hash/deep_dup.rb:
--------------------------------------------------------------------------------
1 | class Hash
2 | # Returns a deep copy of hash.
3 | def deep_dup
4 | duplicate = self.dup
5 | duplicate.each_pair do |k,v|
6 | tv = duplicate[k]
7 | duplicate[k] = tv.is_a?(Hash) && v.is_a?(Hash) ? tv.deep_dup : v
8 | end
9 | duplicate
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/Rakefile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env rake
2 | # Add your own tasks in files placed in lib/tasks ending in .rake,
3 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4 |
5 | require File.expand_path('../config/application', __FILE__)
6 |
7 | <%= app_const %>.load_tasks
8 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/script/rails:
--------------------------------------------------------------------------------
1 | # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
2 |
3 | APP_PATH = File.expand_path('../../config/application', __FILE__)
4 | require File.expand_path('../../config/boot', __FILE__)
5 | require 'rails/commands'
6 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 | require 'rails/performance_test_help'
3 |
4 | # Profiling results for each test method are written to tmp/performance.
5 | class BrowsingTest < ActionDispatch::PerformanceTest
6 | def test_homepage
7 | get '/'
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/valid_with_timestamps/20100101010101_valid_with_timestamps_people_have_last_names.rb:
--------------------------------------------------------------------------------
1 | class ValidWithTimestampsPeopleHaveLastNames < ActiveRecord::Migration
2 | def self.up
3 | add_column "people", "last_name", :string
4 | end
5 |
6 | def self.down
7 | remove_column "people", "last_name"
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/activesupport/test/core_ext/regexp_ext_test.rb:
--------------------------------------------------------------------------------
1 | require 'abstract_unit'
2 | require 'active_support/core_ext/regexp'
3 |
4 | class RegexpExtAccessTests < Test::Unit::TestCase
5 | def test_multiline
6 | assert_equal true, //m.multiline?
7 | assert_equal false, //.multiline?
8 | assert_equal false, /(?m:)/.multiline?
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/plugin_new/templates/script/rails.tt:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3 |
4 | ENGINE_PATH = File.expand_path('../..', __FILE__)
5 | load File.expand_path('../../<%= dummy_path %>/script/rails', __FILE__)
6 |
--------------------------------------------------------------------------------
/activerecord/test/fixtures/sponsors.yml:
--------------------------------------------------------------------------------
1 | moustache_club_sponsor_for_groucho:
2 | sponsor_club: moustache_club
3 | sponsorable: groucho (Member)
4 | boring_club_sponsor_for_groucho:
5 | sponsor_club: boring_club
6 | sponsorable: some_other_guy (Member)
7 | crazy_club_sponsor_for_groucho:
8 | sponsor_club: crazy_club
9 | sponsorable: some_other_guy (Member)
--------------------------------------------------------------------------------
/actionpack/test/controller/new_base/render_xml_test.rb:
--------------------------------------------------------------------------------
1 | require 'abstract_unit'
2 |
3 | module RenderXml
4 |
5 | # This has no layout and it works
6 | class BasicController < ActionController::Base
7 | self.view_paths = [ActionView::FixtureResolver.new(
8 | "render_xml/basic/with_render_erb" => "Hello world!"
9 | )]
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/layouts/block_with_layout.erb:
--------------------------------------------------------------------------------
1 | <%= render(:layout => "layout_for_partial", :locals => { :name => "Anthony" }) do %>Inside from first block in layout<% "Return value should be discarded" %><% end %>
2 | <%= yield %>
3 | <%= render(:layout => "layout_for_partial", :locals => { :name => "Ramm" }) do %>Inside from second block in layout<% end %>
4 |
--------------------------------------------------------------------------------
/activesupport/lib/active_support/i18n.rb:
--------------------------------------------------------------------------------
1 | begin
2 | require 'i18n'
3 | require 'active_support/lazy_load_hooks'
4 | rescue LoadError => e
5 | $stderr.puts "You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install"
6 | raise e
7 | end
8 |
9 | I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml"
10 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/test_unit/plugin/plugin_generator.rb:
--------------------------------------------------------------------------------
1 | require 'rails/generators/test_unit'
2 |
3 | module TestUnit
4 | module Generators
5 | class PluginGenerator < Base
6 | check_class_collision :suffix => "Test"
7 |
8 | def create_test_files
9 | directory '.', 'test'
10 | end
11 | end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/actionpack/lib/abstract_controller/logger.rb:
--------------------------------------------------------------------------------
1 | require "active_support/core_ext/logger"
2 | require "active_support/benchmarkable"
3 |
4 | module AbstractController
5 | module Logger
6 | extend ActiveSupport::Concern
7 |
8 | included do
9 | config_accessor :logger
10 | extend ActiveSupport::Benchmarkable
11 | end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/actionpack/lib/action_controller/metal/cookies.rb:
--------------------------------------------------------------------------------
1 | module ActionController #:nodoc:
2 | module Cookies
3 | extend ActiveSupport::Concern
4 |
5 | include RackDelegation
6 |
7 | included do
8 | helper_method :cookies
9 | end
10 |
11 | private
12 | def cookies
13 | request.cookie_jar
14 | end
15 | end
16 | end
17 |
--------------------------------------------------------------------------------
/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <%= app_const_base %>
5 | <%%= stylesheet_link_tag :all %>
6 | <%%= javascript_include_tag :defaults %>
7 | <%%= csrf_meta_tags %>
8 |
9 |
10 |
11 | <%%= yield %>
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/actionpack/test/fixtures/replies.yml:
--------------------------------------------------------------------------------
1 | witty_retort:
2 | id: 1
3 | topic_id: 1
4 | developer_id: 1
5 | content: Birdman is better!
6 | created_at: <%= 6.hours.ago.to_s(:db) %>
7 | updated_at: nil
8 |
9 | another:
10 | id: 2
11 | topic_id: 2
12 | developer_id: 1
13 | content: Nuh uh!
14 | created_at: <%= 1.hour.ago.to_s(:db) %>
15 | updated_at: nil
16 |
--------------------------------------------------------------------------------
/actionpack/test/lib/testing_sandbox.rb:
--------------------------------------------------------------------------------
1 | module TestingSandbox
2 | # Temporarily replaces KCODE for the block
3 | def with_kcode(kcode)
4 | if RUBY_VERSION < '1.9'
5 | old_kcode, $KCODE = $KCODE, kcode
6 | begin
7 | yield
8 | ensure
9 | $KCODE = old_kcode
10 | end
11 | else
12 | yield
13 | end
14 | end
15 | end
16 |
--------------------------------------------------------------------------------
/activemodel/test/models/person.rb:
--------------------------------------------------------------------------------
1 | class Person
2 | include ActiveModel::Validations
3 | extend ActiveModel::Translation
4 |
5 | attr_accessor :title, :karma, :salary, :gender
6 |
7 | def condition_is_true
8 | true
9 | end
10 | end
11 |
12 | class Child < Person
13 | end
14 |
15 | module PersonModule
16 | class Person < ::Person
17 | end
18 | end
19 |
--------------------------------------------------------------------------------
/activerecord/test/migrations/duplicate/3_innocent_jointable.rb:
--------------------------------------------------------------------------------
1 | class InnocentJointable < ActiveRecord::Migration
2 | def self.up
3 | create_table("people_reminders", :id => false) do |t|
4 | t.column :reminder_id, :integer
5 | t.column :person_id, :integer
6 | end
7 | end
8 |
9 | def self.down
10 | drop_table "people_reminders"
11 | end
12 | end
--------------------------------------------------------------------------------
/activerecord/test/migrations/missing/4_innocent_jointable.rb:
--------------------------------------------------------------------------------
1 | class InnocentJointable < ActiveRecord::Migration
2 | def self.up
3 | create_table("people_reminders", :id => false) do |t|
4 | t.column :reminder_id, :integer
5 | t.column :person_id, :integer
6 | end
7 | end
8 |
9 | def self.down
10 | drop_table "people_reminders"
11 | end
12 | end
--------------------------------------------------------------------------------
/activerecord/test/migrations/valid/3_innocent_jointable.rb:
--------------------------------------------------------------------------------
1 | class InnocentJointable < ActiveRecord::Migration
2 | def self.up
3 | create_table("people_reminders", :id => false) do |t|
4 | t.column :reminder_id, :integer
5 | t.column :person_id, :integer
6 | end
7 | end
8 |
9 | def self.down
10 | drop_table "people_reminders"
11 | end
12 | end
--------------------------------------------------------------------------------