├── guides ├── .document ├── source │ └── kindle │ │ └── copyright.html.erb ├── assets │ ├── images │ │ ├── bullet.gif │ │ ├── favicon.ico │ │ ├── tab_grey.gif │ │ ├── tab_info.gif │ │ ├── tab_note.gif │ │ ├── tab_red.gif │ │ ├── book_icon.gif │ │ ├── edge_badge.png │ │ ├── footer_tile.gif │ │ ├── grey_bullet.gif │ │ ├── header_tile.gif │ │ ├── nav_arrow.gif │ │ ├── tab_yellow.gif │ │ ├── chapters_icon.gif │ │ ├── check_bullet.gif │ │ ├── feature_tile.gif │ │ ├── security │ │ │ ├── csrf.png │ │ │ └── session_fixation.png │ │ ├── rails_guides_logo.gif │ │ ├── i18n │ │ │ ├── demo_html_safe.png │ │ │ ├── demo_translated_en.png │ │ │ ├── demo_untranslated.png │ │ │ ├── demo_localized_pirate.png │ │ │ ├── demo_translated_pirate.png │ │ │ └── demo_translation_missing.png │ │ ├── rails_guides_logo_1x.png │ │ ├── rails_guides_logo_2x.png │ │ ├── association_basics │ │ │ ├── habtm.png │ │ │ ├── has_one.png │ │ │ ├── has_many.png │ │ │ ├── belongs_to.png │ │ │ ├── polymorphic.png │ │ │ ├── has_many_through.png │ │ │ └── has_one_through.png │ │ ├── getting_started │ │ │ ├── challenge.png │ │ │ ├── rails_welcome.png │ │ │ └── article_with_comments.png │ │ ├── rails_guides_kindle_cover.jpg │ │ ├── 4_0_release_notes │ │ │ └── rails4_features.png │ │ └── active_record_querying │ │ │ └── bookstore_models.png │ ├── javascripts │ │ └── .gitattributes │ └── stylesheets │ │ └── turbolinks.css └── CHANGELOG.md ├── RAILS_VERSION ├── actiontext ├── test │ ├── dummy │ │ ├── log │ │ │ └── .keep │ │ ├── tmp │ │ │ ├── .keep │ │ │ └── storage │ │ │ │ └── .keep │ │ ├── lib │ │ │ └── assets │ │ │ │ └── .keep │ │ ├── storage │ │ │ └── .keep │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── apple-touch-icon.png │ │ │ └── apple-touch-icon-precomposed.png │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ └── config │ │ │ │ │ └── manifest.js │ │ │ ├── models │ │ │ │ ├── concerns │ │ │ │ │ └── .keep │ │ │ │ ├── page.rb │ │ │ │ ├── application_record.rb │ │ │ │ └── review.rb │ │ │ ├── controllers │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── views │ │ │ │ ├── layouts │ │ │ │ │ └── mailer.text.erb │ │ │ │ ├── people │ │ │ │ │ ├── _attachable.html.erb │ │ │ │ │ └── _trix_content_attachment.html.erb │ │ │ │ ├── messages_mailer │ │ │ │ │ └── notification.html.erb │ │ │ │ └── messages │ │ │ │ │ └── new.html.erb │ │ │ ├── helpers │ │ │ │ ├── messages_helper.rb │ │ │ │ └── application_helper.rb │ │ │ ├── jobs │ │ │ │ └── application_job.rb │ │ │ ├── javascript │ │ │ │ └── packs │ │ │ │ │ └── application.js │ │ │ ├── channels │ │ │ │ └── application_cable │ │ │ │ │ ├── channel.rb │ │ │ │ │ └── connection.rb │ │ │ └── mailers │ │ │ │ └── application_mailer.rb │ │ ├── .browserslistrc │ │ ├── .postcssrc.yml │ │ ├── bin │ │ │ ├── rake │ │ │ └── bundle │ │ ├── config │ │ │ ├── webpack │ │ │ │ └── environment.js │ │ │ └── spring.rb │ │ └── config.ru │ └── fixtures │ │ ├── people.yml │ │ ├── reviews.yml │ │ ├── files │ │ └── racecar.jpg │ │ └── messages.yml ├── app │ └── views │ │ ├── action_text │ │ ├── attachables │ │ │ └── _missing_attachable.html.erb │ │ └── contents │ │ │ └── _content.html.erb │ │ └── layouts │ │ └── action_text │ │ └── contents │ │ └── _content.html.erb ├── .gitignore └── bin │ └── test ├── actionmailbox ├── test │ ├── dummy │ │ ├── log │ │ │ └── .keep │ │ ├── storage │ │ │ └── .keep │ │ ├── lib │ │ │ └── assets │ │ │ │ └── .keep │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── apple-touch-icon.png │ │ │ └── apple-touch-icon-precomposed.png │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ └── config │ │ │ │ │ └── manifest.js │ │ │ ├── models │ │ │ │ ├── concerns │ │ │ │ │ └── .keep │ │ │ │ └── application_record.rb │ │ │ ├── controllers │ │ │ │ ├── concerns │ │ │ │ │ └── .keep │ │ │ │ └── application_controller.rb │ │ │ ├── javascript │ │ │ │ └── packs │ │ │ │ │ └── application.js │ │ │ ├── views │ │ │ │ └── layouts │ │ │ │ │ └── mailer.text.erb │ │ │ ├── helpers │ │ │ │ └── application_helper.rb │ │ │ ├── jobs │ │ │ │ └── application_job.rb │ │ │ ├── mailboxes │ │ │ │ └── messages_mailbox.rb │ │ │ ├── channels │ │ │ │ └── application_cable │ │ │ │ │ ├── channel.rb │ │ │ │ │ └── connection.rb │ │ │ └── mailers │ │ │ │ └── application_mailer.rb │ │ ├── .postcssrc.yml │ │ ├── bin │ │ │ ├── rake │ │ │ └── bundle │ │ ├── config │ │ │ ├── initializers │ │ │ │ └── secret_token.rb │ │ │ ├── webpack │ │ │ │ ├── environment.js │ │ │ │ ├── test.js │ │ │ │ ├── production.js │ │ │ │ └── development.js │ │ │ └── spring.rb │ │ └── config.ru │ └── fixtures │ │ └── files │ │ ├── avatar1.jpeg │ │ └── avatar2.jpeg ├── .gitignore ├── lib │ └── rails │ │ └── generators │ │ └── mailbox │ │ └── templates │ │ ├── mailbox.rb.tt │ │ └── application_mailbox.rb.tt ├── CHANGELOG.md └── bin │ └── test ├── activestorage ├── test │ ├── dummy │ │ ├── log │ │ │ └── .keep │ │ ├── lib │ │ │ └── assets │ │ │ │ └── .keep │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── apple-touch-icon.png │ │ │ └── apple-touch-icon-precomposed.png │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ └── config │ │ │ │ │ └── manifest.js │ │ │ ├── models │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── controllers │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── helpers │ │ │ │ └── application_helper.rb │ │ │ └── jobs │ │ │ │ └── application_job.rb │ │ ├── config │ │ │ ├── storage.yml │ │ │ └── routes.rb │ │ ├── package.json │ │ ├── Rakefile │ │ └── bin │ │ │ └── rake │ ├── fixtures │ │ └── files │ │ │ ├── empty_file.txt │ │ │ ├── icon.psd │ │ │ ├── image.gif │ │ │ ├── video.mp4 │ │ │ ├── colors.bmp │ │ │ ├── cropped.pdf │ │ │ ├── favicon.ico │ │ │ ├── racecar.jpg │ │ │ ├── racecar.tif │ │ │ ├── report.pdf │ │ │ ├── video.webm │ │ │ ├── rotated_video.mp4 │ │ │ ├── racecar_rotated.jpg │ │ │ └── video_without_video_stream.mp4 │ └── service │ │ └── configurations.yml.enc ├── app │ ├── assets │ │ └── javascripts │ │ │ └── .gitattributes │ └── jobs │ │ └── active_storage │ │ └── base_job.rb ├── .babelrc ├── CHANGELOG.md ├── .gitignore └── bin │ └── test ├── activerecord ├── test │ ├── assets │ │ ├── test.txt │ │ ├── example.log │ │ └── flowers.jpg │ ├── fixtures │ │ ├── all │ │ │ ├── people.yml │ │ │ ├── tasks.yml │ │ │ ├── developers.yml │ │ │ ├── admin │ │ │ └── namespaced │ │ │ │ └── accounts.yml │ │ ├── naked │ │ │ └── yml │ │ │ │ ├── accounts.yml │ │ │ │ ├── courses.yml │ │ │ │ ├── companies.yml │ │ │ │ ├── trees.yml │ │ │ │ ├── courses_with_invalid_key.yml │ │ │ │ └── parrots.yml │ │ ├── fk_test_has_pk.yml │ │ ├── other_dogs.yml │ │ ├── uuid_parents.yml │ │ ├── strict_zines.yml │ │ ├── admin │ │ │ └── accounts.yml │ │ ├── fk_test_has_fk.yml │ │ ├── items.yml │ │ ├── trees.yml │ │ ├── warehouse-things.yml │ │ ├── content.yml │ │ ├── to_be_linked │ │ │ └── accounts.yml │ │ ├── collections.yml │ │ ├── legacy_things.yml │ │ ├── minimalistics.yml │ │ ├── uuid_children.yml │ │ ├── content_positions.yml │ │ ├── dogs.yml │ │ ├── humans.yml │ │ ├── colleges.yml │ │ ├── doubloons.yml │ │ ├── variants.yml │ │ ├── bulbs.yml │ │ ├── friendships.yml │ │ ├── products.yml │ │ ├── reserved_words │ │ │ ├── distinct.yml │ │ │ ├── select.yml │ │ │ └── values.yml │ │ ├── author_favorites.yml │ │ ├── vertices.yml │ │ ├── organizations.yml │ │ ├── zines.yml │ │ ├── jobs.yml │ │ ├── member_types.yml │ │ ├── minivans.yml │ │ ├── mixed_case_monkeys.yml │ │ ├── movies.yml │ │ ├── live_parrots.yml │ │ ├── citations.yml │ │ ├── edges.yml │ │ ├── dashboards.yml │ │ ├── dog_lovers.yml │ │ ├── ships.yml │ │ ├── courses.yml │ │ ├── projects.yml │ │ ├── string_key_objects.yml │ │ ├── cars.yml │ │ ├── dead_parrots.yml │ │ └── tags.yml │ ├── migrations │ │ └── empty │ │ │ └── .keep │ └── models │ │ ├── publisher.rb │ │ ├── guid.rb │ │ ├── binary.rb │ │ ├── carrier.rb │ │ ├── default.rb │ │ ├── record.rb │ │ ├── autoloadable │ │ └── extra_firm.rb │ │ ├── measurement.rb │ │ ├── minimalistic.rb │ │ ├── non_primary_key.rb │ │ ├── recipe.rb │ │ ├── cart.rb │ │ ├── column.rb │ │ ├── entrant.rb │ │ ├── mentor.rb │ │ ├── member_type.rb │ │ ├── admin.rb │ │ ├── admin │ │ └── account.rb │ │ ├── event.rb │ │ ├── message.rb │ │ ├── tree.rb │ │ ├── uuid_child.rb │ │ ├── uuid_parent.rb │ │ ├── boolean.rb │ │ ├── country.rb │ │ ├── keyboard.rb │ │ ├── line_item.rb │ │ ├── mixed_case_monkey.rb │ │ ├── possession.rb │ │ ├── task.rb │ │ ├── treaty.rb │ │ ├── arunit2_model.rb │ │ ├── column_name.rb │ │ ├── dashboard.rb │ │ ├── legacy_thing.rb │ │ ├── notification.rb │ │ ├── string_key_object.rb │ │ ├── cake_designer.rb │ │ ├── department.rb │ │ ├── uuid_comment.rb │ │ ├── uuid_message.rb │ │ ├── computer.rb │ │ ├── dl_keyed_has_many.rb │ │ ├── dl_keyed_has_one.rb │ │ ├── frog.rb │ │ ├── entry.rb │ │ ├── room.rb │ │ └── without_table.rb └── .gitignore ├── actionpack ├── test │ ├── fixtures │ │ ├── shared.html.erb │ │ ├── 公共 │ │ │ ├── bar.html │ │ │ ├── foo │ │ │ │ ├── bar.html │ │ │ │ ├── index.html │ │ │ │ ├── other-index.html │ │ │ │ ├── こんにちは.html │ │ │ │ ├── さようなら.html │ │ │ │ ├── baz.css │ │ │ │ └── さようなら.html.gz │ │ │ ├── index.html │ │ │ ├── bar │ │ │ │ └── index.html │ │ │ ├── other-index.html │ │ │ └── gzip │ │ │ │ └── foo.zoo.gz │ │ ├── multipart │ │ │ ├── hello.txt │ │ │ ├── binary_file │ │ │ ├── mixed_files │ │ │ ├── bracketed_param │ │ │ ├── single_parameter │ │ │ └── ruby_on_rails.jpg │ │ ├── public │ │ │ ├── bar.html │ │ │ ├── index.html │ │ │ ├── foo │ │ │ │ ├── bar.html │ │ │ │ ├── index.html │ │ │ │ ├── other-index.html │ │ │ │ ├── こんにちは.html │ │ │ │ ├── さようなら.html │ │ │ │ ├── baz.css │ │ │ │ └── さようなら.html.gz │ │ │ ├── 400.html │ │ │ ├── 404.html │ │ │ ├── 500.html │ │ │ ├── bar │ │ │ │ └── index.html │ │ │ ├── other-index.html │ │ │ ├── 500.da.html │ │ │ └── gzip │ │ │ │ └── foo.zoo.gz │ │ ├── test │ │ │ ├── _partial.erb │ │ │ ├── _partial.js.erb │ │ │ ├── hello │ │ │ │ └── hello.erb │ │ │ ├── hello_world.erb │ │ │ ├── _partial.html.erb │ │ │ ├── formatted_xml_erb.builder │ │ │ ├── with_implicit_template.erb │ │ │ ├── implicit_content_type.atom.builder │ │ │ ├── render_file_with_ivar.erb │ │ │ ├── formatted_xml_erb.xml.erb │ │ │ ├── render_file_with_locals.erb │ │ │ ├── formatted_xml_erb.html.erb │ │ │ ├── dot.directory │ │ │ │ └── render_file_with_ivar.erb │ │ │ └── hello_world_with_partial.html.erb │ │ ├── localized │ │ │ ├── hello_world.de.html │ │ │ ├── hello_world.it.erb │ │ │ └── hello_world.en.html │ │ ├── layouts │ │ │ ├── xhr.html.erb │ │ │ ├── builder.builder │ │ │ ├── yield.erb │ │ │ ├── _customers.erb │ │ │ ├── standard.html.erb │ │ │ ├── talk_from_action.erb │ │ │ └── with_html_partial.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 │ │ ├── _top_level_partial_only.erb │ │ ├── filter_test │ │ │ └── implicit_actions │ │ │ │ ├── edit.html.erb │ │ │ │ └── show.html.erb │ │ ├── respond_to │ │ │ ├── using_defaults.html.erb │ │ │ ├── using_defaults_with_all.html.erb │ │ │ ├── variant_plus_none_for_format.html.erb │ │ │ ├── using_defaults.xml.builder │ │ │ ├── using_defaults_with_type_list.html.erb │ │ │ ├── variant_any_implicit_render.html+phablet.erb │ │ │ ├── variant_any_implicit_render.html+tablet.erb │ │ │ ├── custom_constant_handling_without_block.mobile.erb │ │ │ ├── variant_inline_syntax_without_block.html+phone.erb │ │ │ ├── all_types_with_layout.html.erb │ │ │ ├── variant_with_implicit_template_rendering.html+mobile.erb │ │ │ ├── using_defaults_with_type_list.xml.builder │ │ │ ├── iphone_with_html_response_type.html.erb │ │ │ ├── layouts │ │ │ │ ├── standard.html.erb │ │ │ │ ├── standard.iphone.erb │ │ │ │ └── missing.html.erb │ │ │ └── iphone_with_html_response_type.iphone.erb │ │ ├── functional_caching │ │ │ ├── _formatted_partial.html.erb │ │ │ ├── html_fragment_cached_with_partial.html.erb │ │ │ ├── _partial.erb │ │ │ ├── formatted_fragment_cached.html.erb │ │ │ ├── fragment_cached.html.erb │ │ │ ├── formatted_fragment_cached.xml.builder │ │ │ ├── formatted_fragment_cached_with_variant.html+phone.erb │ │ │ ├── fragment_cached_without_digest.html.erb │ │ │ └── inline_fragment_cached.html.erb │ │ ├── namespaced │ │ │ └── implicit_render_test │ │ │ │ └── hello_world.erb │ │ ├── old_content_type │ │ │ ├── render_default_for_erb.erb │ │ │ ├── render_default_for_builder.builder │ │ │ └── render_default_content_types_for_respond_to.xml.erb │ │ ├── star_star_mime │ │ │ └── index.js.erb │ │ ├── load_me.rb │ │ ├── implicit_render_test │ │ │ ├── empty_action_with_mobile_variant.html+mobile.erb │ │ │ └── empty_action_with_template.html.erb │ │ ├── ruby_template.ruby │ │ ├── helpers │ │ │ ├── abc_helper.rb │ │ │ ├── just_me_helper.rb │ │ │ ├── me_too_helper.rb │ │ │ └── fun │ │ │ │ └── pdf_helper.rb │ │ ├── bad_customers │ │ │ └── _bad_customer.html.erb │ │ ├── collection_cache │ │ │ └── index.html.erb │ │ ├── alternate_helpers │ │ │ └── foo_helper.rb │ │ ├── helpers_typo │ │ │ └── admin │ │ │ │ └── users_helper.rb │ │ ├── helpers1_pack │ │ │ └── pack1_helper.rb │ │ └── helpers2_pack │ │ │ └── pack2_helper.rb │ └── controller │ │ └── controller_fixtures │ │ ├── app │ │ └── controllers │ │ │ ├── user_controller.rb │ │ │ └── admin │ │ │ └── user_controller.rb │ │ └── vendor │ │ └── plugins │ │ └── bad_plugin │ │ └── lib │ │ └── plugin_controller.rb ├── lib │ ├── action_dispatch │ │ └── middleware │ │ │ └── templates │ │ │ └── rescues │ │ │ ├── _actions.text.erb │ │ │ ├── unknown_action.text.erb │ │ │ ├── missing_template.text.erb │ │ │ └── missing_exact_template.text.erb │ └── abstract_controller │ │ └── error.rb └── bin │ └── test ├── actionview ├── test │ ├── fixtures │ │ ├── shared.html.erb │ │ ├── test │ │ │ ├── _a-in.html.erb │ │ │ ├── _two.html.erb │ │ │ ├── _🍣.erb │ │ │ ├── _FooBar.html.erb │ │ │ ├── _partial.erb │ │ │ ├── _first.html.erb │ │ │ ├── _first.xml.erb │ │ │ ├── _partial.js.erb │ │ │ ├── _second.html.erb │ │ │ ├── _second.xml.erb │ │ │ ├── hello │ │ │ │ └── hello.erb │ │ │ ├── hello_world.erb │ │ │ ├── _changing_priority.html.erb │ │ │ ├── _changing_priority.json.erb │ │ │ ├── _json_change_priority.json.erb │ │ │ ├── _klass.erb │ │ │ ├── _partial.html.erb │ │ │ ├── _partial_only.erb │ │ │ ├── dont_pick_me │ │ │ ├── hello_world.da.html.erb │ │ │ ├── hello_world.erb~ │ │ │ ├── template.erb │ │ │ ├── _partialhtml.html │ │ │ ├── _raise.html.erb │ │ │ ├── hello_world.html+phone.erb │ │ │ ├── hello_world.pt-BR.html.erb │ │ │ ├── malformed │ │ │ │ ├── malformed~ │ │ │ │ ├── malformed.erb~ │ │ │ │ ├── malformed.en.html.erb~ │ │ │ │ └── malformed.html.erb~ │ │ │ ├── render_file_unicode_local.erb │ │ │ ├── _200.html.erb │ │ │ ├── _counter.html.erb │ │ │ ├── _from_helper.erb │ │ │ ├── _second_json_partial.json.erb │ │ │ ├── _utf8_partial.html.erb │ │ │ ├── basic.html.erb │ │ │ ├── greeting.xml.erb │ │ │ ├── nil_return.erb │ │ │ ├── hello_world.text+phone.erb │ │ │ ├── render_file_instance_variable.erb │ │ │ ├── _b_layout_for_partial.html.erb │ │ │ ├── _object_inspector.erb │ │ │ ├── _one.html.erb │ │ │ ├── one.html.erb │ │ │ ├── _customer.erb │ │ │ ├── _directory │ │ │ │ └── _partial_with_locales.html.erb │ │ │ ├── render_file_with_locals_and_default.erb │ │ │ ├── render_template_with_ivar.erb │ │ │ ├── render_template_with_locals.erb │ │ │ ├── streaming_with_locale.erb │ │ │ ├── syntax_error.html.erb │ │ │ ├── _customer.mobile.erb │ │ │ ├── _customer_greeting.erb │ │ │ ├── _js_html_fallback.html.erb │ │ │ ├── _partial_for_use_in_layout.html.erb │ │ │ ├── sub_template_raise.html.erb │ │ │ ├── _partial_name_local_variable.erb │ │ │ ├── _partial_with_only_html_version.html.erb │ │ │ ├── _partial_with_variants.html+grid.erb │ │ │ ├── _template_not_named_customer.html.erb │ │ │ ├── _layout_for_partial.html.erb │ │ │ ├── _partial_iteration_1.erb │ │ │ ├── _partial_iteration_2.erb │ │ │ ├── _utf8_partial_magic.html.erb │ │ │ ├── dot.directory │ │ │ │ └── render_template_with_ivar.erb │ │ │ ├── render_file_inspect_local_assigns.erb │ │ │ ├── _first_json_partial.json.erb │ │ │ ├── _partial_with_partial.erb │ │ │ ├── render_file_with_ruby_keyword_locals.erb │ │ │ ├── _customer_with_var.erb │ │ │ ├── _layout_for_block_with_args.html.erb │ │ │ ├── _local_inspector.html.erb │ │ │ ├── hello_world_with_partial.html.erb │ │ │ ├── html_template.html.erb │ │ │ ├── _partial_name_in_local_assigns.erb │ │ │ ├── test_template_with_delegation_reserved_keywords.erb │ │ │ ├── _b_layout_for_partial_with_object.html.erb │ │ │ ├── _builder_tag_nested_in_content_tag.erb │ │ │ ├── _cached_customer_as.erb │ │ │ ├── streaming_buster.erb │ │ │ ├── _b_layout_for_partial_with_object_counter.html.erb │ │ │ ├── _cached_customer.erb │ │ │ ├── js_html_fallback.js.erb │ │ │ ├── hello.builder │ │ │ ├── layout_render_object.erb │ │ │ ├── layout_render_file.erb │ │ │ ├── nested_streaming.erb │ │ │ ├── _content_tag_nested_in_content_tag.erb │ │ │ ├── _first_layer.html.erb │ │ │ ├── _first_layer.xml.erb │ │ │ ├── _layout_with_partial_and_yield.html.erb │ │ │ ├── _nested_cached_customer.erb │ │ │ ├── _second_layer.html.erb │ │ │ ├── _second_layer.xml.erb │ │ │ ├── streaming.erb │ │ │ ├── _label_with_block.erb │ │ │ ├── list.erb │ │ │ ├── render_partial_inside_directory.html.erb │ │ │ ├── cache_fragment_inside_render_layout_block_1.html.erb │ │ │ ├── cache_fragment_inside_render_layout_block_2.html.erb │ │ │ └── _cached_set.erb │ │ ├── actionpack │ │ │ ├── hello.html │ │ │ ├── shared.html.erb │ │ │ ├── test │ │ │ │ ├── _partial.erb │ │ │ │ ├── _hello.builder │ │ │ │ ├── _partial.js.erb │ │ │ │ ├── hello,world.erb │ │ │ │ ├── hello │ │ │ │ │ └── hello.erb │ │ │ │ ├── hello_world.erb │ │ │ │ ├── raise.html.erb │ │ │ │ ├── _changing_priority.html.erb │ │ │ │ ├── _changing_priority.json.erb │ │ │ │ ├── _json_change_priority.json.erb │ │ │ │ ├── _partial.html.erb │ │ │ │ ├── _partial_only.erb │ │ │ │ ├── hyphen-ated.erb │ │ │ │ ├── _counter.html.erb │ │ │ │ ├── _form.erb │ │ │ │ ├── _partial_only_html.html │ │ │ │ ├── _second_json_partial.json.erb │ │ │ │ ├── greeting.xml.erb │ │ │ │ ├── proper_block_detection.erb │ │ │ │ ├── formatted_html_erb.html.erb │ │ │ │ ├── formatted_xml_erb.builder │ │ │ │ ├── greeting.html.erb │ │ │ │ ├── hello_world_with_layout_false.erb │ │ │ │ ├── _partial_html_erb.html.erb │ │ │ │ ├── _customer.erb │ │ │ │ ├── _labelling_form.erb │ │ │ │ ├── _person.erb │ │ │ │ ├── formatted_xml_erb.xml.erb │ │ │ │ ├── implicit_content_type.atom.builder │ │ │ │ ├── render_file_from_template.html.erb │ │ │ │ ├── render_file_with_locals_and_default.erb │ │ │ │ ├── render_template_with_ivar.erb │ │ │ │ ├── _directory │ │ │ │ │ └── _partial_with_locales.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_template_with_locals.erb │ │ │ │ ├── render_to_string_test.erb │ │ │ │ ├── _customer_counter_with_as.erb │ │ │ │ ├── _customer_greeting.erb │ │ │ │ ├── _hash_greeting.erb │ │ │ │ ├── _partial_for_use_in_layout.html.erb │ │ │ │ ├── _partial_name_local_variable.erb │ │ │ │ ├── render_implicit_html_template_from_xhr_request.da.html.erb │ │ │ │ ├── with_partial.text.erb │ │ │ │ ├── _layout_for_partial.html.erb │ │ │ │ ├── dot.directory │ │ │ │ │ └── render_template_with_ivar.erb │ │ │ │ ├── hello_world_from_rxml.builder │ │ │ │ ├── _customer_counter.erb │ │ │ │ ├── _first_json_partial.json.erb │ │ │ │ ├── _customer_with_var.erb │ │ │ │ ├── _partial_with_partial.erb │ │ │ │ ├── action_talk_to_layout.erb │ │ │ │ ├── capturing.erb │ │ │ │ ├── hello_world_with_partial.html.erb │ │ │ │ ├── with_partial.html.erb │ │ │ │ ├── content_for.erb │ │ │ │ ├── html_template.html.erb │ │ │ │ ├── with_xml_template.html.erb │ │ │ │ ├── _hash_object.erb │ │ │ │ ├── with_html_partial.html.erb │ │ │ │ ├── content_for_with_parameter.erb │ │ │ │ ├── hello_world_container.builder │ │ │ │ ├── hello.builder │ │ │ │ ├── content_for_concatenated.erb │ │ │ │ ├── list.erb │ │ │ │ ├── non_erb_block_content_for.builder │ │ │ │ ├── render_partial_inside_directory.html.erb │ │ │ │ └── using_layout_around_block.html.erb │ │ │ ├── layout_tests │ │ │ │ ├── views │ │ │ │ │ ├── hello.erb │ │ │ │ │ └── goodbye.erb │ │ │ │ ├── alt │ │ │ │ │ └── layouts │ │ │ │ │ │ └── alt.erb │ │ │ │ └── layouts │ │ │ │ │ ├── item.erb │ │ │ │ │ ├── layout_test.erb │ │ │ │ │ ├── multiple_extensions.html.erb │ │ │ │ │ ├── third_party_template_library.mab │ │ │ │ │ ├── controller_name_space │ │ │ │ │ └── nested.erb │ │ │ │ │ └── symlinked │ │ │ │ │ └── symlinked_layout.erb │ │ │ ├── layouts │ │ │ │ ├── _yield_only.erb │ │ │ │ ├── xhr.html.erb │ │ │ │ ├── _yield_with_params.erb │ │ │ │ ├── builder.builder │ │ │ │ ├── standard.html.erb │ │ │ │ ├── standard.text.erb │ │ │ │ ├── yield.erb │ │ │ │ ├── _customers.erb │ │ │ │ ├── _partial_and_yield.erb │ │ │ │ ├── talk_from_action.erb │ │ │ │ ├── with_html_partial.html.erb │ │ │ │ ├── yield_with_render_inline_inside.erb │ │ │ │ ├── yield_with_render_partial_inside.erb │ │ │ │ ├── _column.html.erb │ │ │ │ └── streaming.erb │ │ │ ├── fun │ │ │ │ └── games │ │ │ │ │ ├── _form.erb │ │ │ │ │ └── hello_world.erb │ │ │ ├── quiz │ │ │ │ └── questions │ │ │ │ │ └── _question.html.erb │ │ │ ├── customers │ │ │ │ └── _customer.html.erb │ │ │ ├── bad_customers │ │ │ │ └── _bad_customer.html.erb │ │ │ └── good_customers │ │ │ │ └── _good_customer.html.erb │ │ ├── digestor │ │ │ ├── events │ │ │ │ ├── _event.html.erb │ │ │ │ ├── _completed.html.erb │ │ │ │ └── index.html.erb │ │ │ ├── messages │ │ │ │ ├── _form.html.erb │ │ │ │ ├── _header.html.erb │ │ │ │ ├── actions │ │ │ │ │ └── _move.html.erb │ │ │ │ ├── _message.html.erb │ │ │ │ ├── thread.json.erb │ │ │ │ ├── index.html.erb │ │ │ │ └── peek.html.erb │ │ │ ├── level │ │ │ │ ├── below │ │ │ │ │ ├── _header.html.erb │ │ │ │ │ └── index.html.erb │ │ │ │ ├── recursion.html.erb │ │ │ │ └── _recursion.html.erb │ │ │ ├── comments │ │ │ │ ├── _comment.html.erb │ │ │ │ ├── show.js.erb │ │ │ │ └── _comments.html.erb │ │ │ └── api │ │ │ │ └── comments │ │ │ │ ├── _comment.json.erb │ │ │ │ └── _comments.json.erb │ │ ├── plain_text.raw │ │ ├── public │ │ │ ├── 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 │ │ │ └── foo │ │ │ │ └── baz.css │ │ ├── replies │ │ │ └── _reply.erb │ │ ├── comments │ │ │ ├── empty.html.erb │ │ │ ├── empty.xml.erb │ │ │ ├── empty.de.html.erb │ │ │ ├── empty.html+grid.erb │ │ │ └── empty.html.builder │ │ ├── games │ │ │ └── _game.erb │ │ ├── layouts │ │ │ ├── _yield_only.erb │ │ │ ├── _yield_with_params.erb │ │ │ ├── yield.erb │ │ │ ├── _customers.erb │ │ │ ├── streaming_with_locale.erb │ │ │ ├── _partial_and_yield.erb │ │ │ ├── render_partial_html.erb │ │ │ ├── yield_with_render_inline_inside.erb │ │ │ ├── _column.html.erb │ │ │ ├── yield_with_render_partial_inside.erb │ │ │ └── streaming.erb │ │ ├── mascots │ │ │ └── _mascot.html.erb │ │ ├── projects │ │ │ └── _project.erb │ │ ├── topics │ │ │ └── _topic.html.erb │ │ ├── _top_level_partial_only.erb │ │ ├── developers │ │ │ └── _developer.erb │ │ ├── fun │ │ │ ├── games │ │ │ │ ├── _game.erb │ │ │ │ └── hello_world.erb │ │ │ └── serious │ │ │ │ └── games │ │ │ │ └── _game.erb │ │ ├── layout_tests │ │ │ └── alt │ │ │ │ └── hello.erb │ │ ├── _top_level_partial.html.erb │ │ ├── override │ │ │ └── test │ │ │ │ └── hello_world.erb │ │ ├── override2 │ │ │ └── layouts │ │ │ │ └── test │ │ │ │ └── sub.erb │ │ ├── respond_to │ │ │ └── using_defaults_with_all.html.erb │ │ ├── translations │ │ │ └── templates │ │ │ │ ├── found.erb │ │ │ │ ├── array.erb │ │ │ │ ├── missing.erb │ │ │ │ ├── _partial.html.erb │ │ │ │ ├── default.erb │ │ │ │ ├── partial_lazy_translation.html.erb │ │ │ │ ├── partial_lazy_translation_block.html.erb │ │ │ │ ├── found_yield_single_argument.html.erb │ │ │ │ ├── found_yield_block.html.erb │ │ │ │ ├── missing_yield_single_argument_block.erb │ │ │ │ └── missing_yield_block.erb │ │ ├── customers │ │ │ ├── _customer.html.erb │ │ │ └── _customer.xml.erb │ │ ├── plain_text_with_characters.raw │ │ ├── mascots.yml │ │ ├── with_format.json.erb │ │ ├── ruby_template.ruby │ │ ├── helpers │ │ │ ├── abc_helper.rb │ │ │ └── helpery_test_helper.rb │ │ ├── good_customers │ │ │ └── _good_customer.html.erb │ │ ├── mascot.rb │ │ ├── topic.rb │ │ └── projects.yml │ ├── actionpack │ │ └── abstract │ │ │ └── views │ │ │ ├── index.erb │ │ │ ├── naked_render.erb │ │ │ ├── abstract_controller │ │ │ └── testing │ │ │ │ ├── me3 │ │ │ │ ├── index.erb │ │ │ │ └── formatted.html.erb │ │ │ │ └── me4 │ │ │ │ └── index.erb │ │ │ ├── action_with_ivars.erb │ │ │ ├── helper_test.erb │ │ │ └── layouts │ │ │ ├── application.erb │ │ │ └── abstract_controller │ │ │ └── testing │ │ │ └── me4.erb │ ├── ujs │ │ └── config.ru │ └── lib │ │ └── test_renderable.rb ├── .gitignore └── bin │ └── test ├── .github └── CODEOWNERS ├── .gitattributes ├── actionmailer ├── test │ └── fixtures │ │ ├── base_mailer │ │ ├── welcome.erb │ │ ├── attachment_with_hash.html.erb │ │ ├── different_layout.html.erb │ │ ├── welcome_with_headers.html.erb │ │ ├── different_layout.text.erb │ │ ├── html_only.html.erb │ │ ├── plain_text_only.text.erb │ │ ├── attachment_with_hash_default_encoding.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.de.html.erb │ │ ├── implicit_with_locale.en.html.erb │ │ ├── implicit_with_locale.pl.text.erb │ │ ├── email_with_translations.html.erb │ │ ├── explicit_multipart_with_one_template.erb │ │ ├── implicit_with_locale.de-AT.text.erb │ │ ├── explicit_multipart_templates.html.erb │ │ ├── explicit_multipart_templates.text.erb │ │ ├── inline_attachment.text.erb │ │ ├── without_mail_call.erb │ │ ├── implicit_multipart_formats.html.erb │ │ ├── implicit_multipart_formats.text.erb │ │ ├── inline_and_other_attachments.text.erb │ │ └── inline_attachment.html.erb │ │ ├── proc_mailer │ │ └── welcome.html.erb │ │ ├── test_helper_mailer │ │ └── welcome │ │ ├── auto_layout_mailer │ │ ├── hello.html.erb │ │ ├── multipart.html.erb │ │ └── multipart.text.erb │ │ ├── base_test │ │ ├── after_action_mailer │ │ │ └── welcome.html.erb │ │ ├── before_action_mailer │ │ │ └── welcome.html.erb │ │ └── default_inline_attachment_mailer │ │ │ └── welcome.html.erb │ │ ├── anonymous │ │ └── welcome.erb │ │ ├── layouts │ │ ├── spam.html.erb │ │ ├── different_layout.html.erb │ │ ├── different_layout.text.erb │ │ ├── auto_layout_mailer.html.erb │ │ └── auto_layout_mailer.text.erb │ │ ├── mail_delivery_test │ │ └── delivery_mailer │ │ │ └── welcome.html.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 │ │ ├── caching_mailer │ │ ├── fragment_cache_in_partials.html.erb │ │ ├── fragment_cache.html.erb │ │ ├── _partial.html.erb │ │ ├── multipart_cache.html.erb │ │ ├── multipart_cache.text.erb │ │ ├── skip_fragment_cache_digesting.html.erb │ │ └── fragment_caching_options.html.erb │ │ ├── url_test_mailer │ │ └── exercise_url_for.erb │ │ ├── attachments │ │ ├── foo.jpg │ │ └── test.jpg │ │ └── i18n_test_mailer │ │ └── mail_with_i18n_subject.erb ├── CHANGELOG.md └── bin │ └── test ├── activesupport ├── .gitignore ├── test │ ├── fixtures │ │ ├── xml │ │ │ ├── jdom_include.txt │ │ │ ├── jdom_entities.txt │ │ │ └── jdom_doctype.dtd │ │ └── autoload │ │ │ ├── another_class.rb │ │ │ └── some_class.rb │ ├── file_fixtures │ │ └── sample.txt │ ├── autoloading_fixtures │ │ ├── d.rb │ │ ├── typo.rb │ │ ├── a │ │ │ ├── b.rb │ │ │ └── c │ │ │ │ ├── d.rb │ │ │ │ └── em │ │ │ │ └── f.rb │ │ ├── conflict.rb │ │ ├── em.rb │ │ ├── application.rb │ │ ├── circular2.rb │ │ ├── should_not_be_required.rb │ │ ├── cross_site_dependency.rb │ │ ├── load_path │ │ │ └── loaded_constant.rb │ │ ├── class_folder │ │ │ └── inline_class.rb │ │ ├── html │ │ │ └── some_class.rb │ │ ├── module_folder │ │ │ ├── inline_class.rb │ │ │ ├── nested_sibling.rb │ │ │ └── nested_class.rb │ │ ├── prepend │ │ │ └── sub_class_conflict.rb │ │ ├── raises_name_error.rb │ │ ├── class_folder.rb │ │ ├── module_with_custom_const_missing │ │ │ └── a │ │ │ │ └── b.rb │ │ ├── circular1.rb │ │ ├── requires_constant.rb │ │ ├── multiple_constant_file.rb │ │ └── raises_no_method_error.rb │ └── dependencies │ │ ├── conflict.rb │ │ ├── service_two.rb │ │ ├── requires_nonexistent0.rb │ │ ├── requires_nonexistent1.rb │ │ ├── check_warnings.rb │ │ ├── cross_site_depender.rb │ │ └── service_one.rb ├── lib │ └── active_support │ │ ├── core_ext │ │ ├── file.rb │ │ ├── digest.rb │ │ ├── object │ │ │ └── to_param.rb │ │ ├── symbol.rb │ │ └── big_decimal.rb │ │ ├── testing │ │ └── autorun.rb │ │ ├── json.rb │ │ └── all.rb └── bin │ └── test ├── .yarnrc ├── activejob ├── test │ ├── support │ │ └── delayed_job │ │ │ └── delayed │ │ │ └── serialization │ │ │ └── test.rb │ ├── adapters │ │ ├── inline.rb │ │ ├── resque.rb │ │ ├── sidekiq.rb │ │ ├── sneakers.rb │ │ ├── async.rb │ │ ├── backburner.rb │ │ ├── que.rb │ │ ├── queue_classic.rb │ │ └── sucker_punch.rb │ └── jobs │ │ ├── application_job.rb │ │ └── queue_adapter_job.rb ├── CHANGELOG.md └── bin │ └── test ├── railties ├── lib │ └── rails │ │ ├── generators │ │ ├── rails │ │ │ ├── app │ │ │ │ └── templates │ │ │ │ │ ├── public │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── apple-touch-icon.png │ │ │ │ │ ├── apple-touch-icon-precomposed.png │ │ │ │ │ └── robots.txt │ │ │ │ │ ├── app │ │ │ │ │ ├── views │ │ │ │ │ │ └── layouts │ │ │ │ │ │ │ └── mailer.text.erb.tt │ │ │ │ │ ├── helpers │ │ │ │ │ │ └── application_helper.rb.tt │ │ │ │ │ ├── assets │ │ │ │ │ │ └── config │ │ │ │ │ │ │ └── manifest.js.tt │ │ │ │ │ └── models │ │ │ │ │ │ └── application_record.rb.tt │ │ │ │ │ └── ruby-version.tt │ │ │ ├── generator │ │ │ │ └── templates │ │ │ │ │ └── templates │ │ │ │ │ └── .empty_directory │ │ │ ├── plugin │ │ │ │ └── templates │ │ │ │ │ ├── lib │ │ │ │ │ └── %namespaced_name% │ │ │ │ │ │ ├── version.rb.tt │ │ │ │ │ │ └── railtie.rb.tt │ │ │ │ │ ├── bin │ │ │ │ │ └── test.tt │ │ │ │ │ └── rails │ │ │ │ │ └── routes.rb.tt │ │ │ └── helper │ │ │ │ └── templates │ │ │ │ └── helper.rb.tt │ │ ├── erb │ │ │ ├── mailer │ │ │ │ └── templates │ │ │ │ │ ├── layout.text.erb.tt │ │ │ │ │ └── view.text.erb.tt │ │ │ └── controller │ │ │ │ └── templates │ │ │ │ └── view.html.erb.tt │ │ └── test_unit │ │ │ └── plugin │ │ │ └── templates │ │ │ └── test_helper.rb │ │ ├── templates │ │ └── rails │ │ │ └── info │ │ │ └── properties.html.erb │ │ └── rack.rb ├── test │ └── fixtures │ │ ├── lib │ │ ├── generators │ │ │ ├── usage_template │ │ │ │ └── USAGE │ │ │ ├── model_generator.rb │ │ │ └── fixjour_generator.rb │ │ ├── create_test_dummy_template.rb │ │ └── template.rb │ │ └── Rakefile ├── .gitignore └── bin │ └── test ├── actioncable ├── .gitignore ├── app │ ├── assets │ │ └── javascripts │ │ │ └── .gitattributes │ └── javascript │ │ └── action_cable │ │ └── adapters.js ├── CHANGELOG.md ├── .babelrc ├── bin │ └── test └── lib │ └── rails │ └── generators │ └── channel │ └── templates │ └── application_cable │ ├── channel.rb.tt │ └── connection.rb.tt ├── .yardopts └── activemodel ├── test └── models │ └── sheep.rb └── bin └── test /guides/.document: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RAILS_VERSION: -------------------------------------------------------------------------------- 1 | 6.2.0.alpha 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/tmp/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/tmp/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/assets/test.txt: -------------------------------------------------------------------------------- 1 | %00 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/people.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/tasks.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activerecord/test/migrations/empty/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/bar.html: -------------------------------------------------------------------------------- 1 | /bar.html -------------------------------------------------------------------------------- /actiontext/test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_a-in.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_two.html.erb: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_🍣.erb: -------------------------------------------------------------------------------- 1 | 🍣 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/developers.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/empty_file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | .rubocop.yml @rafaelfranca 2 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/hello.txt: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/bar.html: -------------------------------------------------------------------------------- 1 | /bar.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/index.html: -------------------------------------------------------------------------------- 1 | /index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/bar.html: -------------------------------------------------------------------------------- 1 | /foo/bar.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/index.html: -------------------------------------------------------------------------------- 1 | /index.html -------------------------------------------------------------------------------- /actiontext/test/dummy/.browserslistrc: -------------------------------------------------------------------------------- 1 | defaults 2 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actiontext/test/dummy/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_FooBar.html.erb: -------------------------------------------------------------------------------- 1 | 🍣 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /activerecord/test/fixtures/all/admin: -------------------------------------------------------------------------------- 1 | ../to_be_linked/ -------------------------------------------------------------------------------- /activestorage/test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /activestorage/test/dummy/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.rb diff=ruby 2 | *.gemspec diff=ruby 3 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/welcome.erb: -------------------------------------------------------------------------------- 1 | Welcome -------------------------------------------------------------------------------- /actionmailer/test/fixtures/proc_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/hello.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/bar/index.html: -------------------------------------------------------------------------------- 1 | /bar/index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/index.html: -------------------------------------------------------------------------------- 1 | /foo/index.html -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/hello.html: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/events/_event.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/_form.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first.html.erb: -------------------------------------------------------------------------------- 1 | "HTML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first.xml.erb: -------------------------------------------------------------------------------- 1 | "XML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second.html.erb: -------------------------------------------------------------------------------- 1 | "HTML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second.xml.erb: -------------------------------------------------------------------------------- 1 | "XML" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello/hello.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/accounts.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /activestorage/test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/javascript/packs/application.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/test_helper_mailer/welcome: -------------------------------------------------------------------------------- 1 | Welcome! -------------------------------------------------------------------------------- /actionpack/test/fixtures/localized/hello_world.de.html: -------------------------------------------------------------------------------- 1 | Guten Tag -------------------------------------------------------------------------------- /actionpack/test/fixtures/localized/hello_world.it.erb: -------------------------------------------------------------------------------- 1 | Ciao Mondo -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/400.html: -------------------------------------------------------------------------------- 1 | 400 error fixture 2 | -------------------------------------------------------------------------------- /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/bar/index.html: -------------------------------------------------------------------------------- 1 | /bar/index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/index.html: -------------------------------------------------------------------------------- 1 | /foo/index.html -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/other-index.html: -------------------------------------------------------------------------------- 1 | /other-index.html -------------------------------------------------------------------------------- /actiontext/test/dummy/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/events/_completed.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/level/below/_header.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/messages/_header.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/plain_text.raw: -------------------------------------------------------------------------------- 1 | <%= hello_world %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/elsewhere/cools.js: -------------------------------------------------------------------------------- 1 | // cools.js -------------------------------------------------------------------------------- /actionview/test/fixtures/public/elsewhere/file.css: -------------------------------------------------------------------------------- 1 | /*file.css*/ -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/bank.js: -------------------------------------------------------------------------------- 1 | // bank js -------------------------------------------------------------------------------- /actionview/test/fixtures/replies/_reply.erb: -------------------------------------------------------------------------------- 1 | <%= reply.content %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_changing_priority.html.erb: -------------------------------------------------------------------------------- 1 | HTML -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_changing_priority.json.erb: -------------------------------------------------------------------------------- 1 | JSON -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_json_change_priority.json.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_klass.erb: -------------------------------------------------------------------------------- 1 | <%= klass.class.name %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_partial_only.erb: -------------------------------------------------------------------------------- 1 | only partial -------------------------------------------------------------------------------- /actionview/test/fixtures/test/dont_pick_me: -------------------------------------------------------------------------------- 1 | non-template file -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.da.html.erb: -------------------------------------------------------------------------------- 1 | Hey verden -------------------------------------------------------------------------------- /actionview/test/fixtures/test/hello_world.erb~: -------------------------------------------------------------------------------- 1 | Don't pick me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/template.erb: -------------------------------------------------------------------------------- 1 | <%= template.path %> -------------------------------------------------------------------------------- /activerecord/test/fixtures/naked/yml/courses.yml: -------------------------------------------------------------------------------- 1 | qwerty 2 | -------------------------------------------------------------------------------- /activesupport/.gitignore: -------------------------------------------------------------------------------- 1 | /test/fixtures/isolation_test/ 2 | -------------------------------------------------------------------------------- /activesupport/test/fixtures/xml/jdom_include.txt: -------------------------------------------------------------------------------- 1 | include me 2 | -------------------------------------------------------------------------------- /guides/source/kindle/copyright.html.erb: -------------------------------------------------------------------------------- 1 | <%= render 'license' %> -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | workspaces-experimental true 2 | --add.prefer-offline true -------------------------------------------------------------------------------- /actionmailbox/test/dummy/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb: -------------------------------------------------------------------------------- 1 | Inside -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/attachment_with_hash.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/different_layout.html.erb: -------------------------------------------------------------------------------- 1 | HTML -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/welcome_with_headers.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/layouts/xhr.html.erb: -------------------------------------------------------------------------------- 1 | XHR! 2 | <%= yield %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/localized/hello_world.en.html: -------------------------------------------------------------------------------- 1 | Hello World -------------------------------------------------------------------------------- /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/public/other-index.html: -------------------------------------------------------------------------------- 1 | /other-index.html -------------------------------------------------------------------------------- /actiontext/test/fixtures/people.yml: -------------------------------------------------------------------------------- 1 | alice: 2 | name: "Alice" 3 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_hello.builder: -------------------------------------------------------------------------------- 1 | xm.hello 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello,world.erb: -------------------------------------------------------------------------------- 1 | Hello w*rld! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello/hello.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/raise.html.erb: -------------------------------------------------------------------------------- 1 | <% raise %> -------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.html.erb: -------------------------------------------------------------------------------- 1 |
This is grand!
2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/malformed/malformed.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /actionview/test/fixtures/test/nil_return.erb: -------------------------------------------------------------------------------- 1 | This is nil: <%== nil %> 2 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/uuid_parents.yml: -------------------------------------------------------------------------------- 1 | daddy: 2 | name: Daddy 3 | -------------------------------------------------------------------------------- /activesupport/test/fixtures/xml/jdom_entities.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/anonymous/welcome.erb: -------------------------------------------------------------------------------- 1 | Anonymous mailer body 2 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_test/before_action_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/layouts/spam.html.erb: -------------------------------------------------------------------------------- 1 | Spammer layout <%= yield %> -------------------------------------------------------------------------------- /actionmailer/test/fixtures/mail_delivery_test/delivery_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/nested_layout_mailer/signup.html.erb: -------------------------------------------------------------------------------- 1 | We do not spam -------------------------------------------------------------------------------- /actionpack/lib/action_dispatch/middleware/templates/rescues/_actions.text.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/foo/こんにちは.html: -------------------------------------------------------------------------------- 1 | means hello in Japanese 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/さようなら.html: -------------------------------------------------------------------------------- 1 | means goodbye in Japanese 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults_with_all.html.erb: -------------------------------------------------------------------------------- 1 | HTML! 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_plus_none_for_format.html.erb: -------------------------------------------------------------------------------- 1 | none -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/formatted_xml_erb.builder: -------------------------------------------------------------------------------- 1 | xml.test "failed" 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/with_implicit_template.erb: -------------------------------------------------------------------------------- 1 | Hello explicitly! 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/公共/foo/baz.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #000; 3 | } 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/_top_level_partial.html.erb: -------------------------------------------------------------------------------- 1 | top level partial html -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/views/goodbye.erb: -------------------------------------------------------------------------------- 1 | hello.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/_yield_only.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/xhr.html.erb: -------------------------------------------------------------------------------- 1 | XHR! 2 | <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/comments/empty.de.html.erb: -------------------------------------------------------------------------------- 1 |This is grand!
2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/proper_block_detection.erb: -------------------------------------------------------------------------------- 1 | <%= @todo %> -------------------------------------------------------------------------------- /actionview/test/fixtures/fun/serious/games/_game.erb: -------------------------------------------------------------------------------- 1 | Serious <%= game.name %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/_yield_with_params.erb: -------------------------------------------------------------------------------- 1 | <%= yield 'Yield!' %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/foo/baz.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #000; 3 | } 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/javascripts/common.javascript: -------------------------------------------------------------------------------- 1 | // common.javascript -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/subdir/subdir.css: -------------------------------------------------------------------------------- 1 | /* subdir.css */ 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/public/stylesheets/version.1.0.css: -------------------------------------------------------------------------------- 1 | /* version.1.0.css */ -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_b_layout_for_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_object_inspector.erb: -------------------------------------------------------------------------------- 1 | <%= object_inspector.inspect -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/array.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo.bar') %> 2 | -------------------------------------------------------------------------------- /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/trees.yml: -------------------------------------------------------------------------------- 1 | root: 2 | id: 1 3 | name: The Root 4 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/warehouse-things.yml: -------------------------------------------------------------------------------- 1 | one: 2 | id: 1 3 | value: 1000 -------------------------------------------------------------------------------- /activesupport/test/fixtures/xml/jdom_doctype.dtd: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/generator/templates/templates/.empty_directory: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /railties/lib/rails/templates/rails/info/properties.html.erb: -------------------------------------------------------------------------------- 1 | <%= @info.html_safe %> -------------------------------------------------------------------------------- /actioncable/app/assets/javascripts/.gitattributes: -------------------------------------------------------------------------------- 1 | action_cable.js linguist-generated 2 | -------------------------------------------------------------------------------- /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/base_mailer/attachment_with_hash_default_encoding.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_test/default_inline_attachment_mailer/welcome.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_any_implicit_render.html+phablet.erb: -------------------------------------------------------------------------------- 1 | phablet -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_any_implicit_render.html+tablet.erb: -------------------------------------------------------------------------------- 1 | tablet -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/helpers/messages_helper.rb: -------------------------------------------------------------------------------- 1 | module MessagesHelper 2 | end 3 | -------------------------------------------------------------------------------- /actionview/test/actionpack/abstract/views/naked_render.erb: -------------------------------------------------------------------------------- 1 | Hello from naked_render.erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/fun/games/_form.erb: -------------------------------------------------------------------------------- 1 | <%= form.label :title %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/fun/games/hello_world.erb: -------------------------------------------------------------------------------- 1 | Living in a nested world -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layout_tests/layouts/item.erb: -------------------------------------------------------------------------------- 1 | item.erb <%= yield %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/formatted_html_erb.html.erb: -------------------------------------------------------------------------------- 1 | formatted html erb -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/formatted_xml_erb.builder: -------------------------------------------------------------------------------- 1 | xml.test "failed" 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/greeting.html.erb: -------------------------------------------------------------------------------- 1 |This is grand!
2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello_world_with_layout_false.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /actionview/test/fixtures/digestor/level/recursion.html.erb: -------------------------------------------------------------------------------- 1 | <%= render 'recursion' %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_one.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "two" %> world 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/one.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "test/two" %> world -------------------------------------------------------------------------------- /actionview/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 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/erb/mailer/templates/layout.text.erb.tt: -------------------------------------------------------------------------------- 1 | <%%= yield %> 2 | -------------------------------------------------------------------------------- /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/fixtures/functional_caching/_formatted_partial.html.erb: -------------------------------------------------------------------------------- 1 |Hello!
2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/namespaced/implicit_render_test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/old_content_type/render_default_for_erb.erb: -------------------------------------------------------------------------------- 1 | <%= 'hello world!' %> -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb: -------------------------------------------------------------------------------- 1 | Mobile -------------------------------------------------------------------------------- /actionpack/test/fixtures/respond_to/variant_inline_syntax_without_block.html+phone.erb: -------------------------------------------------------------------------------- 1 | phone -------------------------------------------------------------------------------- /actionpack/test/fixtures/test/formatted_xml_erb.xml.erb: -------------------------------------------------------------------------------- 1 |ERB
<% end %> 3 | 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/public/foo/さようなら.html.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/actionpack/test/fixtures/public/foo/さようなら.html.gz -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/bad_customers/_bad_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_content_tag_nested_in_content_tag.erb: -------------------------------------------------------------------------------- 1 | <%= content_tag 'p' do %> 2 | <%= content_tag 'b', 'Hello' %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first_layer.html.erb: -------------------------------------------------------------------------------- 1 | {"format":"HTML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %>, 4 | ]} 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_first_layer.xml.erb: -------------------------------------------------------------------------------- 1 | {"format":"XML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %> 4 | ]} 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_layout_with_partial_and_yield.html.erb: -------------------------------------------------------------------------------- 1 | Before 2 | <%= render :partial => "test/partial" %> 3 | <%= yield %> 4 | After 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_nested_cached_customer.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: "test/cached_customer", locals: { cached_customer: cached_customer } %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second_layer.html.erb: -------------------------------------------------------------------------------- 1 | {"format":"HTML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %> 4 | ]} 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_second_layer.xml.erb: -------------------------------------------------------------------------------- 1 | {"format":"XML", "children": 2 | [ 3 | <%= render(partial: "first").chomp.html_safe %> 4 | ]} 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/live_parrots.yml: -------------------------------------------------------------------------------- 1 | dusty: 2 | name: "Dusty Bluebird" 3 | treasures: [ruby, sapphire] 4 | parrot_sti_class: LiveParrot 5 | -------------------------------------------------------------------------------- /activerecord/test/models/member_type.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MemberType < ActiveRecord::Base 4 | has_many :members 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/test/dummy/Rakefile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require_relative "config/application" 4 | 5 | Rails.application.load_tasks 6 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/rotated_video.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/activestorage/test/fixtures/files/rotated_video.mp4 -------------------------------------------------------------------------------- /activestorage/test/service/configurations.yml.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/activestorage/test/service/configurations.yml.enc -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/object/to_param.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/object/to_query" 4 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/symbol.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/symbol/starts_ends_with" 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/class_folder/inline_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ClassFolder::InlineClass 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/html/some_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module HTML 4 | class SomeClass 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_folder/inline_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ModuleFolder::InlineClass 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/prepend/sub_class_conflict.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Prepend::SubClassConflict 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/raises_name_error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class RaisesNameError 4 | FooBarBaz 5 | end 6 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/habtm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/association_basics/habtm.png -------------------------------------------------------------------------------- /guides/assets/images/association_basics/has_one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/association_basics/has_one.png -------------------------------------------------------------------------------- /guides/assets/images/getting_started/challenge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/getting_started/challenge.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_localized_pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/i18n/demo_localized_pirate.png -------------------------------------------------------------------------------- /guides/assets/images/rails_guides_kindle_cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/rails_guides_kindle_cover.jpg -------------------------------------------------------------------------------- /guides/assets/images/security/session_fixation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/security/session_fixation.png -------------------------------------------------------------------------------- /railties/.gitignore: -------------------------------------------------------------------------------- 1 | /log/ 2 | /test/500.html 3 | /test/fixtures/tmp/ 4 | /test/initializer/root/log/ 5 | /test/isolation/assets/yarn.lock 6 | /tmp/ 7 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/erb/controller/templates/view.html.erb.tt: -------------------------------------------------------------------------------- 1 |Find me in <%= @path %>
3 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../stylesheets .css 3 | -------------------------------------------------------------------------------- /actionmailbox/lib/rails/generators/mailbox/templates/mailbox.rb.tt: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Mailbox < ApplicationMailbox 2 | def process 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/webpack/production.js: -------------------------------------------------------------------------------- 1 | const environment = require('./environment') 2 | 3 | module.exports = environment.toWebpackConfig() 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/multipart_cache.html.erb: -------------------------------------------------------------------------------- 1 | <% cache :html_caching, skip_digest: true do %> 2 | "Welcome html" 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/multipart_cache.text.erb: -------------------------------------------------------------------------------- 1 | <% cache :text_caching, skip_digest: true do %> 2 | "Welcome text" 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/alternate_helpers/foo_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module FooHelper 4 | redefine_method(:baz) { } 5 | end 6 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers_typo/admin/users_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Admin 4 | module UsersHelpeR 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/multipart/ruby_on_rails.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/actionpack/test/fixtures/multipart/ruby_on_rails.jpg -------------------------------------------------------------------------------- /actiontext/test/dummy/app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/good_customers/_good_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> good customer: <%= good_customer.name %><%= good_customer_counter %> -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/hello.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello #{@name}" 3 | xml << render(template: "test/greeting") 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/layouts/streaming.erb: -------------------------------------------------------------------------------- 1 | <%= yield :header -%> 2 | <%= yield -%> 3 | <%= yield :footer -%> 4 | <%= yield(:unknown).presence || "." -%> -------------------------------------------------------------------------------- /actionview/test/fixtures/test/streaming.erb: -------------------------------------------------------------------------------- 1 | <%- provide :header do -%>Yes, <%- end -%> 2 | this works 3 | <%- content_for :footer, " like a charm" -%> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/partial_lazy_translation_block.html.erb: -------------------------------------------------------------------------------- 1 | <%= render("translations/templates/partial") do %> 2 | <% end %> 3 | -------------------------------------------------------------------------------- /activejob/test/adapters/sidekiq.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "sidekiq/testing/inline" 4 | ActiveJob::Base.queue_adapter = :sidekiq 5 | -------------------------------------------------------------------------------- /activejob/test/adapters/sneakers.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "support/sneakers/inline" 4 | ActiveJob::Base.queue_adapter = :sneakers 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/citations.yml: -------------------------------------------------------------------------------- 1 | <% 65536.times do |i| %> 2 | fixture_no_<%= i %>: 3 | id: <%= i %> 4 | book2_id: <%= i*i %> 5 | <% end %> 6 | -------------------------------------------------------------------------------- /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/admin.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Admin 4 | def self.table_name_prefix 5 | "admin_" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/models/admin/account.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Admin::Account < ActiveRecord::Base 4 | has_many :users 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/event.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Event < ActiveRecord::Base 4 | validates_uniqueness_of :title 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/message.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Message < ActiveRecord::Base 4 | has_one :entry, as: :entryable 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/tree.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Tree < ActiveRecord::Base 4 | has_many :nodes, dependent: :destroy 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/uuid_child.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class UuidChild < ActiveRecord::Base 4 | belongs_to :uuid_parent 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/uuid_parent.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class UuidParent < ActiveRecord::Base 4 | has_many :uuid_children 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false } ] 4 | ], 5 | "plugins": [ 6 | "external-helpers" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/racecar_rotated.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/activestorage/test/fixtures/files/racecar_rotated.jpg -------------------------------------------------------------------------------- /activesupport/lib/active_support/core_ext/big_decimal.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/core_ext/big_decimal/conversions" 4 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_folder/nested_sibling.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ModuleFolder::NestedSibling 4 | end 5 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/check_warnings.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | $check_warnings_load_count += 1 4 | $checked_verbose = $VERBOSE 5 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/cross_site_depender.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class CrossSiteDepender 4 | CrossSiteDependency 5 | end 6 | -------------------------------------------------------------------------------- /guides/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/guides/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/has_many.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/association_basics/has_many.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_translated_pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/i18n/demo_translated_pirate.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/erb/mailer/templates/view.text.erb.tt: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= @action %> 2 | 3 | <%%= @greeting %>, find me in <%= @path %> 4 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/helper/templates/helper.rb.tt: -------------------------------------------------------------------------------- 1 | <% module_namespacing do -%> 2 | module <%= class_name %>Helper 3 | end 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /actioncable/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actioncable/CHANGELOG.md) for previous changes. 4 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config/webpack/development.js: -------------------------------------------------------------------------------- 1 | const environment = require('./environment') 2 | 3 | module.exports = environment.toWebpackConfig() 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/skip_fragment_cache_digesting.html.erb: -------------------------------------------------------------------------------- 1 | <%= cache :no_digest, skip_digest: true do %> 2 | No Digest 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | Hello 2 | <%= cache "fragment" do %>This bit's fragment cached<% end %> 3 | <%= 'Ciao' %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_label_with_block.erb: -------------------------------------------------------------------------------- 1 | <%= label('post', 'message')do %> 2 | Message 3 | <%= text_field 'post', 'message' %> 4 | <% end %> 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/list.erb: -------------------------------------------------------------------------------- 1 | <%= @test_unchanged = 'goodbye' %><%= render :partial => 'customer', :collection => @customers %><%= @test_unchanged %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/topic.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Topic < ActiveRecord::Base 4 | has_many :replies, dependent: :destroy 5 | end 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/found_yield_single_argument.html.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo') do |translation| %> 2 | <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /activejob/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activejob/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dashboards.yml: -------------------------------------------------------------------------------- 1 | cool_first: 2 | dashboard_id: d1 3 | name: my_dashboard 4 | second: 5 | dashboard_id: d2 6 | name: second 7 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dog_lovers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | bred_dogs_count: 0 4 | trained_dogs_count: 1 5 | joanna: 6 | id: 2 7 | dogs_count: 1 8 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/ships.yml: -------------------------------------------------------------------------------- 1 | black_pearl: 2 | name: "Black Pearl" 3 | pirate: blackbeard 4 | interceptor: 5 | id: 2 6 | name: "Interceptor" 7 | -------------------------------------------------------------------------------- /activerecord/test/models/boolean.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Boolean < ActiveRecord::Base 4 | def has_fun 5 | super 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/models/country.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Country < ActiveRecord::Base 4 | has_and_belongs_to_many :treaties 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/keyboard.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Keyboard < ActiveRecord::Base 4 | self.primary_key = "key_number" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/line_item.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class LineItem < ActiveRecord::Base 4 | belongs_to :invoice, touch: true 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/mixed_case_monkey.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MixedCaseMonkey < ActiveRecord::Base 4 | belongs_to :human 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/possession.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Possession < ActiveRecord::Base 4 | self.table_name = "having" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/task.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Task < ActiveRecord::Base 4 | def updated_at 5 | ending 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/models/treaty.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Treaty < ActiveRecord::Base 4 | has_and_belongs_to_many :countries 5 | end 6 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/testing/autorun.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | gem "minitest" 4 | 5 | require "minitest" 6 | 7 | Minitest.autorun 8 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/class_folder.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ClassFolder 4 | ConstantInClassFolder = "indeed" 5 | end 6 | -------------------------------------------------------------------------------- /guides/assets/images/association_basics/belongs_to.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/association_basics/belongs_to.png -------------------------------------------------------------------------------- /guides/assets/images/association_basics/polymorphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/association_basics/polymorphic.png -------------------------------------------------------------------------------- /guides/assets/images/getting_started/rails_welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/getting_started/rails_welcome.png -------------------------------------------------------------------------------- /guides/assets/images/i18n/demo_translation_missing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/i18n/demo_translation_missing.png -------------------------------------------------------------------------------- /railties/test/fixtures/lib/generators/fixjour_generator.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class FixjourGenerator < Rails::Generators::NamedBase 4 | end 5 | -------------------------------------------------------------------------------- /actioncable/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false, "loose": true } ] 4 | ], 5 | "plugins": [ 6 | "external-helpers" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /actionmailbox/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailbox/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../javascripts .js 3 | //= link_directory ../stylesheets .css 4 | -------------------------------------------------------------------------------- /actionmailer/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailer/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder: -------------------------------------------------------------------------------- 1 | xml.body do 2 | cache("fragment") do 3 | xml.p "Builder" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../javascripts .js 3 | //= link_directory ../stylesheets .css 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/layouts/streaming.erb: -------------------------------------------------------------------------------- 1 | <%= yield :header -%> 2 | <%= yield -%> 3 | <%= yield :footer -%> 4 | <%= yield(:unknown).presence || "." -%> -------------------------------------------------------------------------------- /actionview/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 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/render_partial_inside_directory.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: 'test/_directory/partial_with_locales', locals: {'name' => 'Jane'} %> 2 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/found_yield_block.html.erb: -------------------------------------------------------------------------------- 1 | <%= t('.foo') do |translation, key| %> 2 | <%= key %>: <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionview/test/fixtures/translations/templates/missing_yield_single_argument_block.erb: -------------------------------------------------------------------------------- 1 | <%= t('.missing') do |translation| %> 2 | <%= translation %> 3 | <% end %> 4 | -------------------------------------------------------------------------------- /activejob/test/adapters/async.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ActiveJob::Base.queue_adapter = :async 4 | ActiveJob::Base.queue_adapter.immediate = true 5 | -------------------------------------------------------------------------------- /activejob/test/jobs/queue_adapter_job.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class QueueAdapterJob < ActiveJob::Base 4 | self.queue_adapter = :inline 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/courses.yml: -------------------------------------------------------------------------------- 1 | ruby: 2 | id: 1 3 | name: Ruby Development 4 | college: FIU 5 | 6 | java: 7 | id: 2 8 | name: Java Development 9 | -------------------------------------------------------------------------------- /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/fixtures/string_key_objects.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: record1 3 | name: first record 4 | 5 | second: 6 | id: record2 7 | name: second record 8 | -------------------------------------------------------------------------------- /activerecord/test/models/arunit2_model.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ARUnit2Model < ActiveRecord::Base 4 | self.abstract_class = true 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/column_name.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class ColumnName < ActiveRecord::Base 4 | self.table_name = "colnametests" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/dashboard.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Dashboard < ActiveRecord::Base 4 | self.primary_key = :dashboard_id 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/legacy_thing.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class LegacyThing < ActiveRecord::Base 4 | self.locking_column = :version 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/notification.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Notification < ActiveRecord::Base 4 | validates_presence_of :message 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/string_key_object.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class StringKeyObject < ActiveRecord::Base 4 | self.primary_key = :id 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activestorage/CHANGELOG.md) for previous changes. 5 | -------------------------------------------------------------------------------- /activesupport/lib/active_support/json.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support/json/decoding" 4 | require "active_support/json/encoding" 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_with_custom_const_missing/a/b.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | ModuleWithCustomConstMissing::A::B = "10" 4 | -------------------------------------------------------------------------------- /guides/assets/images/4_0_release_notes/rails4_features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/4_0_release_notes/rails4_features.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/ruby-version.tt: -------------------------------------------------------------------------------- 1 | <%= ENV["RBENV_VERSION"] || ENV["rvm_ruby_string"] || "#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}" %> 2 | -------------------------------------------------------------------------------- /railties/lib/rails/rack.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Rails 4 | module Rack 5 | autoload :Logger, "rails/rack/logger" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/caching_mailer/fragment_caching_options.html.erb: -------------------------------------------------------------------------------- 1 | <%= cache :no_digest, skip_digest: true, expires_in: 0 do %> 2 | No Digest 3 | <% end %> 4 | -------------------------------------------------------------------------------- /actionpack/lib/abstract_controller/error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module AbstractController 4 | class Error < StandardError #:nodoc: 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= cache("fragment") do %>PHONE
<% end %> 3 | 4 | -------------------------------------------------------------------------------- /actiontext/.gitignore: -------------------------------------------------------------------------------- 1 | /test/dummy/db/*.sqlite3 2 | /test/dummy/db/*.sqlite3-* 3 | /test/dummy/log/*.log 4 | /test/dummy/public/packs-test 5 | /test/dummy/tmp/ 6 | /tmp/ 7 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- 1 | class ApplicationMailer < ActionMailer::Base 2 | default from: 'from@example.com' 3 | layout 'mailer' 4 | end 5 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/messages/new.html.erb: -------------------------------------------------------------------------------- 1 |ERB
<% end %> 3 | 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :inline => 'Some inline content' %> 2 | <%= cache do %>Some cached content<% end %> 3 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers/fun/pdf_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Fun 4 | module PdfHelper 5 | def foobar() "baz" end 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actiontext/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actiontext/test/dummy/app/views/people/_trix_content_attachment.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= person.name %> 3 | 4 | -------------------------------------------------------------------------------- /actiontext/test/dummy/bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __dir__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /actionview/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/render_partial_inside_directory.html.erb: -------------------------------------------------------------------------------- 1 | <%= render partial: 'test/_directory/partial_with_locales', locals: {'name' => 'Jane'} %> 2 | -------------------------------------------------------------------------------- /activejob/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activemodel/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /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/models/computer.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Computer < ActiveRecord::Base 4 | belongs_to :developer, foreign_key: "developer" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/dl_keyed_has_many.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class DlKeyedHasMany < ActiveRecord::Base 4 | self.primary_key = "many_key" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/dl_keyed_has_one.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class DlKeyedHasOne < ActiveRecord::Base 4 | self.primary_key = "has_one_key" 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/frog.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Frog < ActiveRecord::Base 4 | after_save do 5 | with_lock do 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /activestorage/.gitignore: -------------------------------------------------------------------------------- 1 | /src/ 2 | /test/dummy/db/*.sqlite3 3 | /test/dummy/db/*.sqlite3-* 4 | /test/dummy/log/*.log 5 | /test/dummy/tmp/ 6 | /test/service/configurations.yml 7 | -------------------------------------------------------------------------------- /activestorage/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activestorage/test/dummy/bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | require_relative "../config/boot" 5 | require "rake" 6 | Rake.application.run 7 | -------------------------------------------------------------------------------- /activesupport/bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # frozen_string_literal: true 3 | 4 | COMPONENT_ROOT = File.expand_path("..", __dir__) 5 | require_relative "../../tools/test" 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/module_folder/nested_class.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module ModuleFolder 4 | class NestedClass 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /activesupport/test/dependencies/service_one.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | $loaded_service_one ||= 0 4 | $loaded_service_one += 1 5 | 6 | class ServiceOne 7 | end 8 | -------------------------------------------------------------------------------- /guides/assets/images/getting_started/article_with_comments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/getting_started/article_with_comments.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/app/templates/app/models/application_record.rb.tt: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | self.abstract_class = true 3 | end 4 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/bin/test.tt: -------------------------------------------------------------------------------- 1 | $: << File.expand_path("../test", __dir__) 2 | 3 | require "bundler/setup" 4 | require "rails/plugin/test" 5 | -------------------------------------------------------------------------------- /actionmailbox/lib/rails/generators/mailbox/templates/application_mailbox.rb.tt: -------------------------------------------------------------------------------- 1 | class ApplicationMailbox < ActionMailbox::Base 2 | # routing /something/i => :somewhere 3 | end 4 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers1_pack/pack1_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Pack1Helper 4 | def conflicting_helper 5 | "pack1" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actionpack/test/fixtures/helpers2_pack/pack2_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Pack2Helper 4 | def conflicting_helper 5 | "pack2" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actiontext/test/dummy/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require_relative "config/environment" 4 | 5 | run Rails.application 6 | -------------------------------------------------------------------------------- /actionview/test/fixtures/actionpack/test/using_layout_around_block.html.erb: -------------------------------------------------------------------------------- 1 | <%= render(:layout => "layout_for_partial", :locals => { :name => "David" }) do %>Inside from block<% end %> -------------------------------------------------------------------------------- /actionview/test/fixtures/helpers/helpery_test_helper.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module HelperyTestHelper 4 | def helpery_test 5 | "Default" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /actionview/test/fixtures/test/_cached_set.erb: -------------------------------------------------------------------------------- 1 | <%= cached_set.first %> | <%= cached_set.second %> | <%= cached_set.third %> | <%= cached_set.fourth %> | <%= cached_set.fifth %> 2 | -------------------------------------------------------------------------------- /actionview/test/lib/test_renderable.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class TestRenderable 4 | def render_in(_view_context) 5 | "Hello, World!" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/dead_parrots.yml: -------------------------------------------------------------------------------- 1 | deadbird: 2 | name: "Dusty DeadBird" 3 | treasures: [ruby, sapphire] 4 | parrot_sti_class: DeadParrot 5 | killer: blackbeard 6 | -------------------------------------------------------------------------------- /activerecord/test/fixtures/tags.yml: -------------------------------------------------------------------------------- 1 | general: 2 | id: 1 3 | name: General 4 | 5 | misc: 6 | id: 2 7 | name: Misc 8 | 9 | blue: 10 | id: 3 11 | name: Blue 12 | -------------------------------------------------------------------------------- /activerecord/test/models/entry.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Entry < ActiveRecord::Base 4 | delegated_type :entryable, types: %w[ Message Comment ] 5 | end 6 | -------------------------------------------------------------------------------- /activerecord/test/models/room.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class Room < ActiveRecord::Base 4 | belongs_to :user 5 | belongs_to :owner, class_name: "User" 6 | end 7 | -------------------------------------------------------------------------------- /activerecord/test/models/without_table.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class WithoutTable < ActiveRecord::Base 4 | default_scope -> { where(published: true) } 5 | end 6 | -------------------------------------------------------------------------------- /activestorage/test/fixtures/files/video_without_video_stream.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/activestorage/test/fixtures/files/video_without_video_stream.mp4 -------------------------------------------------------------------------------- /activesupport/lib/active_support/all.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "active_support" 4 | require "active_support/time" 5 | require "active_support/core_ext" 6 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/multiple_constant_file.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | MultipleConstantFile = 10 4 | SiblingConstant = MultipleConstantFile * 2 5 | -------------------------------------------------------------------------------- /activesupport/test/autoloading_fixtures/raises_no_method_error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class RaisesNoMethodError 4 | self.foobar_method_doesnt_exist 5 | end 6 | -------------------------------------------------------------------------------- /guides/assets/images/active_record_querying/bookstore_models.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diasks2/rails/master/guides/assets/images/active_record_querying/bookstore_models.png -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/railtie.rb.tt: -------------------------------------------------------------------------------- 1 | <%= wrap_in_modules <<~rb 2 | class Railtie < ::Rails::Railtie 3 | end 4 | rb 5 | %> 6 | -------------------------------------------------------------------------------- /railties/lib/rails/generators/rails/plugin/templates/rails/routes.rb.tt: -------------------------------------------------------------------------------- 1 | Rails.application.routes.draw do 2 | mount <%= camelized_modules %>::Engine => "/<%= name %>" 3 | end 4 | -------------------------------------------------------------------------------- /actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb.tt: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /actionmailbox/test/dummy/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require_relative "config/environment" 4 | 5 | run Rails.application 6 | -------------------------------------------------------------------------------- /actionmailer/test/fixtures/base_mailer/inline_attachment.html.erb: -------------------------------------------------------------------------------- 1 |This is an image that is inline
--------------------------------------------------------------------------------