4091 matches across 10 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | actionpack/test/support/rack_parsing_override.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_pack.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_dispatch.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/base.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/base.rb | 21 | # ApplicationController. This gives you one class to configure things such as |
| LOW | actionpack/lib/action_controller/base.rb | 41 | # populating the `@posts` instance variable. |
| LOW | actionpack/lib/action_controller/base.rb | 61 | # used to query for HTTP headers: |
| LOW | actionpack/lib/action_controller/base.rb | 81 | # |
| LOW | actionpack/lib/action_controller/base.rb | 101 | # session[:person] = Person.authenticate(user_name, password) |
| LOW | actionpack/lib/action_controller/base.rb | 121 | # ## Responses |
| LOW | actionpack/lib/action_controller/base.rb | 141 | # |
| LOW | actionpack/lib/action_controller/base.rb | 161 | # Redirects are used to move from one action to another. For example, after a |
| LOW | actionpack/lib/action_controller/base.rb | 181 | # request (a GET to the show action), and not some internal re-routing which |
| LOW | actionpack/lib/action_controller/base.rb | 201 | # if monkeys.nil? |
| LOW | actionpack/lib/action_controller/metal.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/metal.rb | 61 | Middleware.new(klass, args, list, strategy, block) |
| LOW | actionpack/lib/action_controller/metal.rb | 81 | # |
| LOW | actionpack/lib/action_controller/metal.rb | 101 | # end |
| LOW | actionpack/lib/action_controller/metal.rb | 161 | # :attr_reader: request |
| LOW | actionpack/lib/action_controller/test_case.rb | 241 | private |
| LOW | actionpack/lib/action_controller/test_case.rb | 261 | # functional tests and provide lot of helpers such as `as`, `parsed_body` for |
| LOW | actionpack/lib/action_controller/test_case.rb | 281 | # # the created book's URI. |
| LOW | actionpack/lib/action_controller/test_case.rb | 301 | # @controller |
| LOW | actionpack/lib/action_controller/test_case.rb | 321 | # class name, you can explicitly set it with `tests`. |
| LOW | actionpack/lib/action_controller/test_case.rb | 341 | # assert flash.empty? # makes sure that there's nothing in the flash |
| LOW | actionpack/lib/action_controller/test_case.rb | 421 | # * `body`: The request body with a string that is appropriately encoded |
| LOW | actionpack/lib/action_controller/test_case.rb | 461 | # Simulate a DELETE request with the given parameters and set/volley the |
| LOW | actionpack/lib/action_controller/test_case.rb | 481 | # `nil`. |
| LOW | actionpack/lib/action_controller/test_case.rb | 501 | # |
| LOW | actionpack/lib/action_controller/api.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/api.rb | 21 | # on. This makes the entire controller stack thinner, suitable for API |
| LOW | actionpack/lib/action_controller/api.rb | 41 | # |
| LOW | actionpack/lib/action_controller/api.rb | 61 | # def create |
| LOW | actionpack/lib/action_controller/api.rb | 81 | # posts = Post.all |
| LOW | actionpack/lib/action_controller/caching.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/renderer.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/renderer.rb | 81 | |
| LOW | actionpack/lib/action_controller/form_builder.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/form_builder.rb | 21 | # class AdminAreaController < ApplicationController |
| LOW | actionpack/lib/action_controller/metal/helpers.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/metal/helpers.rb | 21 | # # config/application.rb |
| LOW | actionpack/lib/action_controller/metal/helpers.rb | 41 | # class EventsController < ActionController::Base |
| LOW | actionpack/lib/action_controller/metal/helpers.rb | 101 | |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 41 | ActionDispatch::HostAuthorization::Permissions.new(hosts) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 61 | # ### Examples |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 81 | # Note that the status code must be a 3xx HTTP code, or redirection will not |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 101 | # |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 121 | # * `:raise` - Raises an UnsafeRedirectError |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 161 | self.location = _enforce_open_redirect_protection(redirect_to_location, allow_other_host: allow_other_host) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 181 | # redirect_back_or_to({ action: "show", id: 5 }) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 221 | when Proc |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 241 | # url_from("http://example.com/profile") # => "http://example.com/profile" |
| LOW | …b/action_controller/metal/etag_with_template_digest.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 1 | # frozen_string_literal: true |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 21 | # streaming. This is covered in more detail below, see the Streaming@Middlewares |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 41 | # example, imagine the following `dashboard` action: |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 61 | # with `:stream` won't work. |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 81 | # </html> |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 101 | # |
| LOW | actionpack/lib/action_controller/metal/streaming.rb | 121 | # |
| 2763 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | actionpack/test/abstract_unit.rb | 368 | def parse_set_cookie_attributes(fields, attributes = {}) |
| LOW | actionpack/test/abstract_unit.rb | 395 | def parse_set_cookies_headers(set_cookies) |
| LOW | actionpack/test/abstract_unit.rb | 418 | def assert_set_cookie_attributes(name, attributes, header = @response.headers["Set-Cookie"]) |
| LOW | actionpack/test/abstract_unit.rb | 431 | def assert_not_set_cookie_attributes(name, attributes, header = @response.headers["Set-Cookie"]) |
| LOW | actionpack/test/abstract_unit.rb | 468 | def assert_not_set_cookie_header(expected, header = @response.headers["Set-Cookie"]) |
| LOW | actionpack/test/dispatch/test_response_test.rb | 6 | def assert_response_code_range(range, predicate) |
| LOW | actionpack/test/dispatch/system_testing/driver_test.rb | 218 | def assert_driver_capabilities(driver, expected_capabilities) |
| LOW | …ionpack/test/controller/action_pack_assertions_test.rb | 27 | def redirect_to_controller_with_symbol() redirect_to controller: :elsewhere, action: :flash_me; end |
| LOW | …ionpack/test/controller/action_pack_assertions_test.rb | 31 | def redirect_invalid_external_route() redirect_to "ht_tp://www.rubyonrails.org" end |
| LOW | …ionpack/test/controller/action_pack_assertions_test.rb | 37 | def redirect_external_protocol_relative() redirect_to "//www.rubyonrails.org"; end |
| LOW | actionpack/test/controller/redirect_test.rb | 973 | def with_path_relative_redirect(action) |
| LOW | actionpack/test/controller/redirect_test.rb | 989 | def with_action_on_open_redirect(action) |
| LOW | actionpack/test/controller/redirect_test.rb | 997 | def with_allowed_redirect_hosts(hosts:) |
| LOW | actionpack/test/controller/resources_test.rb | 1239 | def assert_simply_restful_for(controller_name, options = {}) |
| LOW | actionpack/test/controller/resources_test.rb | 1244 | def assert_singleton_restful_for(singleton_name, options = {}) |
| LOW | actionpack/test/controller/resources_test.rb | 1249 | def assert_restful_routes_for(controller_name, options = {}) |
| LOW | actionpack/test/controller/resources_test.rb | 1314 | def assert_restful_named_routes_for(controller_name, singular_name = nil, options = {}) |
| LOW | actionpack/test/controller/resources_test.rb | 1366 | def assert_singleton_routes_for(singleton_name, options = {}) |
| LOW | actionpack/test/controller/resources_test.rb | 1405 | def assert_singleton_named_routes_for(singleton_name, options = {}) |
| LOW | actionpack/test/controller/resources_test.rb | 1444 | def assert_resource_allowed_routes(controller, options, shallow_options, allowed, not_allowed, path = controller) |
| LOW | actionpack/test/controller/resources_test.rb | 1459 | def assert_singleton_resource_allowed_routes(controller, options, allowed, not_allowed, path = controller.singulariz |
| LOW | actionpack/test/controller/routing_test.rb | 861 | def setup_request_method_routes_for(method) |
| LOW | actionpack/test/controller/params_wrapper_test.rb | 8 | def with_default_wrapper_options(&block) |
| LOW | …ack/test/controller/request_forgery_protection_test.rb | 725 | def assert_cross_origin_blocked(&block) |
| LOW | …ack/test/controller/request_forgery_protection_test.rb | 729 | def assert_cross_origin_not_blocked(&block) |
| LOW | …ack/test/controller/request_forgery_protection_test.rb | 1264 | def assert_matches_session_token_on_server(form_token, method = "post") |
| LOW | …pack/test/controller/http_token_authentication_test.rb | 239 | def sample_request_without_token_key(token) |
| LOW | …pack/test/controller/http_token_authentication_test.rb | 243 | def mock_authorization_request(authorization) |
| LOW | actionpack/lib/action_controller/test_case.rb | 409 | def determine_default_controller_class(name) |
| LOW | actionpack/lib/action_controller/test_case.rb | 644 | def process_controller_response(action, cookies, xhr) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 206 | def _compute_redirect_to_location(request, options) # :nodoc: |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 267 | def _extract_redirect_to_status(options, response_options) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 277 | def _enforce_open_redirect_protection(location, allow_other_host:) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 318 | def _ensure_url_is_http_header_safe(url) |
| LOW | actionpack/lib/action_controller/metal/redirecting.rb | 328 | def _handle_path_relative_redirect(url) |
| LOW | …b/action_controller/metal/etag_with_template_digest.rb | 55 | def lookup_and_digest_template(template) |
| LOW | …/action_controller/metal/request_forgery_protection.rb | 716 | def masked_authenticity_token(form_options: {}) |
| LOW | …/action_controller/metal/request_forgery_protection.rb | 779 | def compare_with_global_token(token, session = nil) # :doc: |
| LOW | …/action_controller/metal/request_forgery_protection.rb | 877 | def normalize_relative_action_path(rel_action_path) |
| LOW | …lib/action_controller/metal/content_security_policy.rb | 66 | def content_security_policy_report_only(report_only = true, **options) |
| LOW | actionpack/lib/action_controller/metal/renderers.rb | 158 | def _render_to_body_with_renderer(options) # :nodoc: |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 79 | def http_basic_authenticate_with(name:, password:, realm: nil, message: nil, content_type: nil, **options) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 86 | def http_basic_authenticate_or_request_with(name:, password:, realm: nil, message: nil, content_type: nil) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 95 | def authenticate_or_request_with_http_basic(realm = nil, message = nil, content_type = nil, &login_procedure) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 99 | def authenticate_with_http_basic(&login_procedure) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 103 | def request_http_basic_authentication(realm = "Application", message = nil, content_type = nil) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 198 | def authenticate_or_request_with_http_digest(realm = "Application", message = nil, content_type = nil, &password |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 204 | def authenticate_with_http_digest(realm = "Application", &password_procedure) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 210 | def request_http_digest_authentication(realm = "Application", message = nil, content_type = nil) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 440 | def authenticate_or_request_with_http_token(realm = "Application", message = nil, content_type = nil, &login_pro |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 448 | def authenticate_with_http_token(&login_procedure) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 454 | def request_http_token_authentication(realm = "Application", message = nil, content_type = nil) |
| LOW | …ack/lib/action_controller/metal/http_authentication.rb | 264 | def decode_credentials_header(request) |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 1205 | def new_instance_with_inherited_permitted_status(hash) |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 1211 | def convert_parameters_to_hashes(value, using, &block) |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 1227 | def convert_hashes_to_parameters(key, value) |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 1233 | def convert_value_to_parameters(value) |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 1247 | def _deep_transform_keys_in_object(object, &block) |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 1287 | def _deep_transform_values_in_object(object, &block) |
| LOW | actionpack/lib/action_controller/metal/rendering.rb | 225 | def _set_rendered_content_type(format) |
| 756 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .rubocop.yml | 154 | # Defining a method with parameters needs parentheses. |
| MEDIUM | actionpack/lib/action_controller/test_case.rb | 56 | # Create a new test request with default `env` values. |
| MEDIUM | actionpack/lib/action_controller/metal/live.rb | 117 | # This class provides the ability to write an SSE (Server Sent Event) to an IO |
| MEDIUM | actionpack/lib/action_controller/metal/renderers.rb | 66 | # Create a csv renderer: |
| MEDIUM | actionpack/lib/action_controller/metal/renderers.rb | 93 | # This method is the opposite of add method. |
| MEDIUM | …npack/lib/action_controller/metal/strong_parameters.rb | 511 | # This method is not recommended for fetching terminal values because it does |
| MEDIUM | actionpack/lib/action_controller/metal/rescue.rb | 8 | # This module is responsible for providing |
| MEDIUM | actionpack/lib/action_dispatch/middleware/remote_ip.rb | 53 | # Create a new `RemoteIp` middleware instance. |
| MEDIUM | actionpack/lib/action_dispatch/middleware/stack.rb | 52 | # This class is used to instrument the execution of a single middleware. It |
| MEDIUM | actionpack/lib/action_dispatch/middleware/flash.rb | 272 | # This method is called automatically by filters, so you generally don't need to |
| MEDIUM | actionpack/lib/action_dispatch/testing/integration.rb | 220 | # This method is rarely used directly. Use RequestHelpers#get, |
| MEDIUM | actionpack/lib/action_dispatch/testing/test_request.rb | 16 | # Create a new test request with default `env` values. |
| MEDIUM | actionpack/lib/action_dispatch/http/mime_type.rb | 240 | # This method is opposite of register method. |
| MEDIUM | actionpack/lib/action_dispatch/routing/route_set.rb | 320 | # Create a URL helper allowing ordered parameters to be associated with |
| MEDIUM | actionpack/lib/action_dispatch/routing/inspector.rb | 106 | # This class is just used for displaying route information when someone |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 734 | # Define a route that only recognizes HTTP GET. For supported arguments, see |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 758 | # Define a route that only recognizes HTTP POST. For supported arguments, see |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 782 | # Define a route that only recognizes HTTP PATCH. For supported arguments, see |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 806 | # Define a route that only recognizes HTTP PUT. For supported arguments, see |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 830 | # Define a route that only recognizes HTTP DELETE. For supported arguments, see |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 854 | # Define a route that only recognizes HTTP OPTIONS. For supported arguments, see |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 878 | # Define a route that recognizes HTTP CONNECT (and GET) requests. More |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 1171 | # This class is then used like this: |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 2243 | # Define a routing concern using a name. |
| MEDIUM | actionpack/lib/abstract_controller/base.rb | 57 | # Define a controller as abstract. See internal_methods for more details. |
| MEDIUM | actionpack/lib/abstract_controller/base.rb | 63 | # Define the abstract ivar on subclasses so that we don't get uninitialized ivar |
| MEDIUM | activesupport/lib/active_support/error_reporter.rb | 133 | # This method is intended for reporting violated assertions about preconditions, or similar |
| MEDIUM | activesupport/lib/active_support/rails.rb | 9 | # This file is loaded by every Rails component except Active Support itself, |
| MEDIUM | activesupport/lib/active_support/descendants_tracker.rb | 8 | # This module provides an internal implementation to track descendants |
| MEDIUM | activesupport/lib/active_support/tagged_logging.rb | 31 | # This method is invoked when a log event occurs. |
| MEDIUM | activesupport/lib/active_support/time_with_zone.rb | 221 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | activesupport/lib/active_support/file_update_checker.rb | 25 | # This class is used by \Rails to reload the I18n framework whenever |
| MEDIUM | activesupport/lib/active_support/logger.rb | 40 | # This method is invoked when a log event occurs |
| MEDIUM | activesupport/lib/active_support/reloader.rb | 9 | # This class defines several callbacks: |
| MEDIUM | activesupport/lib/active_support/cache/entry.rb | 7 | # This class is used to represent cache entries. Cache entries have a value, an optional |
| MEDIUM | activesupport/lib/active_support/core_ext/array/wrap.rb | 16 | # This method is similar in purpose to <tt>Kernel#Array</tt>, but there are some differences: |
| MEDIUM | …pport/lib/active_support/core_ext/array/conversions.rb | 89 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | …pport/lib/active_support/core_ext/module/concerning.rb | 113 | # Define a new concern and mix it in. |
| MEDIUM | …upport/lib/active_support/core_ext/date/conversions.rb | 18 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | …t/lib/active_support/core_ext/date_time/conversions.rb | 12 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | …upport/lib/active_support/core_ext/time/conversions.rb | 17 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | …ort/lib/active_support/core_ext/numeric/conversions.rb | 14 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | activesupport/lib/active_support/core_ext/object/try.rb | 48 | # This method is defined to be able to write |
| MEDIUM | …tivesupport/lib/active_support/core_ext/object/with.rb | 14 | # This method is a shorthand for the common begin/ensure pattern: |
| MEDIUM | …ort/lib/active_support/core_ext/date_and_time/zones.rb | 12 | # This method is similar to Time#localtime, except that it uses <tt>Time.zone</tt> as the local zone |
| MEDIUM | …pport/lib/active_support/core_ext/range/conversions.rb | 32 | # This method is aliased to <tt>to_formatted_s</tt>. |
| MEDIUM | activesupport/lib/active_support/core_ext/erb/util.rb | 10 | # This method is not for public consumption! Seriously! |
| MEDIUM | activesupport/lib/active_support/core_ext/erb/util.rb | 22 | # This method is also aliased as <tt>h</tt>. |
| MEDIUM | …esupport/lib/active_support/inflector/transliterate.rb | 19 | # This method is I18n aware, so you can set up custom approximations for a |
| MEDIUM | activesupport/lib/active_support/values/time_zone.rb | 304 | # Create a new TimeZone object with the given name and offset. The |
| MEDIUM | …esupport/lib/active_support/testing/constant_lookup.rb | 27 | # The following code will resolve the constant: |
| MEDIUM | …tivesupport/lib/active_support/notifications/fanout.rb | 54 | # This class is thread safe. All methods are reentrant. |
| MEDIUM | activemodel/test/cases/secure_password_test.rb | 112 | # Create a password with 73 bytes by using a 3-byte Unicode character (e.g., "あ") 24 times, followed by a 1-byte cha |
| MEDIUM | activemodel/lib/active_model/attribute_methods.rb | 427 | # Define a method `name` in `mod` that dispatches to `send` |
| MEDIUM | activemodel/lib/active_model/errors.rb | 33 | # # The following methods are needed to be minimally implemented |
| MEDIUM | activemodel/lib/active_model/errors.rb | 104 | # This method is aliased to <tt>objects</tt>. |
| MEDIUM | activemodel/lib/active_model/dirty.rb | 133 | # This method is generated for each attribute. |
| MEDIUM | activemodel/lib/active_model/dirty.rb | 146 | # This method is generated for each attribute. |
| MEDIUM | activemodel/lib/active_model/dirty.rb | 157 | # This method is generated for each attribute. |
| MEDIUM | activemodel/lib/active_model/dirty.rb | 168 | # This method is generated for each attribute. |
| 105 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | actionpack/lib/action_controller/test_case.rb | 699 | raise "#{iv_name} is nil: make sure you set it in your test's setup method." |
| MEDIUM | actionpack/lib/action_controller/metal/streaming.rb | 112 | # purpose of streaming. Alternatively, you can use a helper called `provide` |
| MEDIUM | …ionpack/lib/action_controller/metal/instrumentation.rb | 104 | # payload, so you can add more information. |
| MEDIUM | actionpack/lib/action_dispatch/system_test_case.rb | 46 | # base class for system testing. This is where you can change the driver, add |
| MEDIUM | actionpack/lib/action_dispatch/system_test_case.rb | 81 | # `:screen_size` to change the size of the browser screen, also you can use |
| MEDIUM | actionpack/lib/action_dispatch/routing.rb | 38 | # logged in user. In this case, you can use a singular resource to map /profile |
| MEDIUM | actionpack/lib/action_dispatch/routing.rb | 59 | # Alternatively, you can add prefixes to your path without using a separate |
| MEDIUM | actionpack/lib/action_dispatch/routing.rb | 72 | # For routes that don't fit the `resources` mold, you can use the HTTP helper |
| LOW | …lib/action_dispatch/middleware/session/cookie_store.rb | 40 | # session. Additionally, you should take care to make sure you are not relying |
| MEDIUM | actionpack/lib/action_dispatch/testing/integration.rb | 415 | # By default, a single session is automatically created for you, but you can use |
| MEDIUM | actionpack/lib/action_dispatch/testing/integration.rb | 649 | # you've registered, you can add your own encoders with: |
| MEDIUM | actionpack/lib/action_dispatch/routing/url_for.rb | 62 | # within mailers, you can use url_for. However, mailers cannot access incoming |
| MEDIUM | …pack/lib/action_dispatch/routing/polymorphic_routes.rb | 31 | # * `url_for`, so you can use it with a record as the argument, e.g. |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 1271 | # logged in user. In this case, you can use a singular resource to map /profile |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 1463 | # logged in user. In this case, you can use a singular resource to map /profile |
| MEDIUM | actionpack/lib/action_dispatch/routing/mapper.rb | 1795 | # `config/routes` directory. In that file, you can use the normal routing DSL, |
| MEDIUM | actionpack/lib/action_dispatch/routing/redirection.rb | 173 | # Alternatively you can use one of the other syntaxes: |
| LOW | activesupport/test/core_ext/class/attribute_test.rb | 233 | # However if it's broken make sure to update ActiveSupport::Callbacks::ClassMethods#set_callbacks |
| MEDIUM | activesupport/lib/active_support/error_reporter.rb | 10 | # To rescue and report any unhandled error, you can use the #handle method: |
| MEDIUM | activesupport/lib/active_support/error_reporter.rb | 18 | # Alternatively, if you want to report the error but not swallow it, you can use #record: |
| MEDIUM | activesupport/lib/active_support/error_reporter.rb | 233 | # Otherwise you can use #unexpected to report an error which does accept a |
| MEDIUM | activesupport/lib/active_support/message_verifier.rb | 17 | # In a \Rails application, you can use +Rails.application.message_verifier+ |
| LOW | activesupport/lib/active_support/execution_context.rb | 40 | # However in production this should never happen, and for extra safety we make sure to |
| MEDIUM | activesupport/lib/active_support/event_reporter.rb | 75 | # To report an event, you can use the +notify+ method: |
| MEDIUM | activesupport/lib/active_support/event_reporter.rb | 195 | # To add additional context to an event, separate from the event payload, you can add |
| MEDIUM | …ib/active_support/testing/error_reporter_assertions.rb | 78 | # To test further details about the reported exception, you can use the return |
| MEDIUM | activemodel/lib/active_model/callbacks.rb | 35 | # Then in your class, you can use the +before_create+, +after_create+, and |
| MEDIUM | activemodel/lib/active_model/conversion.rb | 36 | # you can use the default <tt>:to_model</tt> implementation, which simply |
| LOW | …tivemodel/lib/active_model/validations/confirmation.rb | 61 | # +nil+. To require confirmation, make sure to add a presence check for |
| MEDIUM | activejob/lib/active_job/queue_adapters.rb | 58 | # For older versions you can use the queue_classic-later gem. |
| MEDIUM | activejob/lib/active_job/continuation.rb | 173 | # the results of one step in a later step, you can use +ActiveJob::Attributes+ to persist this state. This module is |
| MEDIUM | railties/lib/rails/engine.rb | 269 | # Now, you can use the <tt>my_engine</tt> helper inside your application: |
| MEDIUM | railties/lib/rails/engine.rb | 303 | # If you want to share just a few specific helpers you can add them to application's |
| MEDIUM | railties/lib/rails/engine.rb | 310 | # If you want to include all of the engine's helpers, you can use the #helper method on an engine's |
| MEDIUM | railties/lib/rails/engine.rb | 326 | # To use engine's migrations in application you can use the rake task below, which copies them to |
| MEDIUM | railties/lib/rails/engine.rb | 342 | # In order to change engine's priority you can use +config.railties_order+ in the main application. |
| MEDIUM | railties/lib/rails/configuration.rb | 13 | # over the default middleware stack, so you can add, swap, or remove any |
| MEDIUM | actioncable/lib/action_cable/channel/base.rb | 31 | # The upside of long-lived channel instances is that you can use instance |
| MEDIUM | actioncable/lib/action_cable/channel/streams.rb | 56 | # example shows how you can use this to provide performance introspection in the |
| MEDIUM | actiontext/lib/action_text/attribute.rb | 27 | # If you wish to preload the dependent RichText model, you can use the named |
| LOW | actiontext/lib/action_text/attribute.rb | 50 | # make sure to also update the class names in the |
| LOW | …ecord/test/cases/adapters/postgresql/timestamp_test.rb | 36 | # make sure to use a non-UTC time zone |
| MEDIUM | activerecord/test/cases/arel/visitors/mysql_test.rb | 15 | # you can use some large number for the second parameter. |
| MEDIUM | activerecord/lib/active_record/base.rb | 173 | # Instead of writing <tt>Person.find_by(user_name: user_name)</tt>, you can use |
| MEDIUM | activerecord/lib/active_record/model_schema.rb | 51 | # If you are organizing your models within modules you can add a prefix to the models within |
| MEDIUM | activerecord/lib/active_record/model_schema.rb | 68 | # If you are organizing your models within modules, you can add a suffix to the models within |
| MEDIUM | activerecord/lib/active_record/fixtures.rb | 113 | # If the model names conflicts with a +TestCase+ methods, you can use the generic +fixture+ accessor |
| MEDIUM | activerecord/lib/active_record/enum.rb | 91 | # For example, you can use that when manually building SQL strings: |
| LOW | activerecord/lib/active_record/errors.rb | 556 | # This is a subclass of TransactionRollbackError, please make sure to check |
| LOW | activerecord/lib/active_record/errors.rb | 564 | # This is a subclass of TransactionRollbackError, please make sure to check |
| MEDIUM | activerecord/lib/active_record/migration.rb | 384 | # To generate a new migration, you can use |
| MEDIUM | activerecord/lib/active_record/migration.rb | 413 | # you wish to downgrade. Alternatively, you can also use the STEP option if you |
| MEDIUM | activerecord/lib/active_record/migration.rb | 510 | # format Active Record expects, you can use the following configuration option: |
| MEDIUM | activerecord/lib/active_record/timestamp.rb | 14 | # Timestamps are in UTC by default but you can use the local timezone by setting: |
| MEDIUM | activerecord/lib/active_record/delegated_type.rb | 140 | # So here's a simple example of that: |
| MEDIUM | activerecord/lib/active_record/associations.rb | 355 | # \Associations are built from <tt>Relation</tt> objects, and you can use the Relation syntax |
| MEDIUM | activerecord/lib/active_record/associations.rb | 362 | # Inside the <tt>-> { ... }</tt> block you can use all of the usual Relation methods. |
| MEDIUM | activerecord/lib/active_record/associations.rb | 471 | # If you need to share the same extensions between many associations, you can use a named |
| LOW | activerecord/lib/active_record/associations.rb | 1760 | # Note: Since polymorphic associations rely on storing class names in the database, make sure to update the cl |
| MEDIUM | activerecord/lib/active_record/statement_cache.rb | 20 | # If you want to cache the statement without the values you can use the +bind+ method of the |
| 53 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | actionpack/lib/action_controller/test_case.rb | 497 | # user: { name: 'Gaurish Sharma', email: 'user@example.com' } |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 623 | # phone: "555-1234" |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 632 | # # => #<ActionController::Parameters {"contact"=>#<ActionController::Parameters {"phone"=>"555-1234"} permitted |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 635 | # # => #<ActionController::Parameters {"contact"=>#<ActionController::Parameters {"email"=>"none@test.com", "pho |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 645 | # phone: "555-1234" |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 649 | # phone: "555-6789" |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 663 | # phone: "555-1234" |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 667 | # phone: "555-6789" |
| LOW | …npack/lib/action_controller/metal/strong_parameters.rb | 672 | # # => {"person"=>{"0"=>{"email"=>"none@test.com"}, "1"=>{"phone"=>"555-6789"}}} |
| LOW | activesupport/test/number_helper_test.rb | 62 | assert_equal("555-1234", number_helper.number_to_phone(5551234)) |
| LOW | activesupport/test/core_ext/numeric_ext_test.rb | 168 | assert_equal("555-1234", 5551234.to_fs(:phone)) |
| LOW | activesupport/test/core_ext/numeric_ext_test.rb | 169 | assert_equal("555-1234", 5551234.to_formatted_s(:phone)) |
| LOW | activesupport/test/core_ext/hash_ext_test.rb | 755 | <TEST>Lorem Ipsum</TEST> |
| LOW | activesupport/test/core_ext/hash_ext_test.rb | 761 | "TEST" => "Lorem Ipsum" |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 14 | @reporter.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 19 | assert_event_reported("user.created", payload: { id: 123, name: "John Doe" }) do |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 20 | @reporter.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 27 | @reporter.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 35 | @reporter.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 42 | @reporter.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 101 | @reporter.notify("another.event", { id: 123, name: "John Doe" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 112 | payload = { id: 123, name: "John Doe" } |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 129 | @reporter.notify("email.sent", { to: "user@example.com" }) |
| LOW | …support/test/testing/event_reporter_assertions_test.rb | 138 | @reporter.notify("email.sent", { to: "user@example.com" }) |
| LOW | activesupport/lib/active_support/number_helper.rb | 45 | # number_to_phone(5551234) # => "555-1234" |
| LOW | activesupport/lib/active_support/number_helper.rb | 46 | # number_to_phone("5551234") # => "555-1234" |
| LOW | activesupport/lib/active_support/event_reporter.rb | 107 | # Rails.event.notify(UserCreatedEvent.new(id: 123, name: "John Doe")) |
| LOW | …pport/lib/active_support/core_ext/module/delegation.rb | 91 | # john_doe = Person.new('John Doe', 'Vimmersvej 13') |
| LOW | …pport/lib/active_support/core_ext/module/delegation.rb | 93 | # invoice.client_name # => "John Doe" |
| LOW | …pport/lib/active_support/core_ext/module/delegation.rb | 103 | # invoice.customer_name # => 'John Doe' |
| LOW | …ort/lib/active_support/core_ext/numeric/conversions.rb | 23 | # 5551234.to_fs(:phone) # => "555-1234" |
| LOW | …ib/active_support/testing/event_reporter_assertions.rb | 129 | # payload: { id: 123, name: "John Doe" }, |
| LOW | …ib/active_support/testing/event_reporter_assertions.rb | 133 | # Rails.event.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …ib/active_support/testing/event_reporter_assertions.rb | 140 | # Rails.event.notify("user.created", { id: 123, name: "John Doe" }) |
| LOW | …ib/active_support/testing/event_reporter_assertions.rb | 165 | # { name: "email.sent", payload: { to: "user@example.com" } } |
| LOW | guides/bug_report_templates/action_mailer.rb | 31 | mail from: "test@example.com", to: "user@example.com" do |format| |
| LOW | guides/source/active_model_basics.md | 377 | irb> person.name = "Jane Doe" |
| LOW | guides/source/active_model_basics.md | 783 | irb> person.first_name = "Jane Doe" |
| LOW | guides/source/active_model_basics.md | 785 | => "Jane Doe" |
| LOW | guides/source/active_model_basics.md | 817 | => {"first_name" => [nil, "Jane Doe"]} |
| LOW | guides/source/active_model_basics.md | 829 | => {"first_name" => [nil, "Jane Doe"]} |
| LOW | guides/source/active_model_basics.md | 840 | irb> person.first_name = "John Doe" |
| LOW | guides/source/active_model_basics.md | 842 | => "John Doe" |
| LOW | guides/source/active_model_basics.md | 866 | => [nil, "John Doe"] |
| LOW | guides/source/active_model_basics.md | 890 | => [nil, "John Doe"] |
| LOW | guides/source/active_model_basics.md | 1388 | irb> person.name = "Jane Doe" |
| LOW | guides/source/active_record_validations.md | 31 | irb> Person.new(name: "John Doe").valid? |
| LOW | guides/source/active_record_validations.md | 97 | irb> p = Person.new(name: "Jane Doe") |
| LOW | guides/source/active_record_validations.md | 98 | => #<Person id: nil, name: "Jane Doe", created_at: nil, updated_at: nil> |
| LOW | guides/source/active_record_validations.md | 244 | irb> Person.new(name: "John Doe").valid? |
| LOW | guides/source/active_record_validations.md | 411 | irb> person = Person.new(name: "Jane Doe", invitation_sent_at: Time.current) |
| LOW | guides/source/active_record_validations.md | 1616 | irb> user = User.new(name: "John Doe", age: 17, email: "jane@example.com", phone: "1234567890", address: "123 Main St") |
| LOW | guides/source/active_record_validations.md | 1616 | irb> user = User.new(name: "John Doe", age: 17, email: "jane@example.com", phone: "1234567890", address: "123 Main St") |
| LOW | guides/source/active_record_validations.md | 1627 | irb> user = User.new(name: "John Doe", age: 17, email: "jane@example.com", phone: "1234567890", address: "123 Main St") |
| LOW | guides/source/active_record_validations.md | 1627 | irb> user = User.new(name: "John Doe", age: 17, email: "jane@example.com", phone: "1234567890", address: "123 Main St") |
| LOW | guides/source/active_record_validations.md | 1667 | irb> person = Person.new(name: "John Doe") |
| LOW | guides/source/active_record_validations.md | 1703 | irb> person = Person.new(name: "John Doe") |
| LOW | guides/source/8_1_release_notes.md | 84 | Rails.event.notify("user.signup", user_id: 123, email: "user@example.com") |
| LOW | guides/source/8_1_release_notes.md | 92 | Rails.event.notify("user.signup", user_id: 123, email: "user@example.com") |
| LOW | guides/source/active_record_callbacks.md | 284 | irb> user = User.create(name: "Jane Doe", password: "password", email: "jane.doe@example.com") |
| 40 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | actionpack/test/abstract_unit.rb | 144 | # simply return the controller#action as Rack::Body. |
| MEDIUM | actionpack/lib/action_controller/metal.rb | 229 | # Basic `url_for` that can be overridden for more robust functionality. |
| MEDIUM | …/action_controller/metal/request_forgery_protection.rb | 730 | # Essentially the inverse of `masked_authenticity_token`. |
| LOW | …ionpack/lib/action_controller/metal/conditional_get.rb | 100 | # You can also just pass a record: |
| LOW | …ionpack/lib/action_controller/metal/conditional_get.rb | 179 | # You can also just pass a record: |
| LOW | actionpack/lib/action_dispatch/routing.rb | 230 | # In tests you can simply pass the URL or named route to `get` or `post`. |
| LOW | actionpack/lib/abstract_controller/helpers.rb | 227 | # In some tests inherited is called explicitly. In that case, just return the |
| MEDIUM | …ivesupport/test/cache/stores/redis_cache_store_test.rb | 8 | # Emulates a latency on Redis's back-end for the key latency to facilitate |
| MEDIUM | activesupport/test/cache/stores/mem_cache_store_test.rb | 9 | # Emulates a latency on Dalli's back-end for the key latency to facilitate |
| LOW | activesupport/lib/active_support/descendants_tracker.rb | 19 | # So we can simply use WeakMap as a `Set`. |
| LOW | activesupport/lib/active_support/cache.rb | 372 | # just call +write+. |
| MEDIUM | activesupport/lib/active_support/current_attributes.rb | 17 | # facilitate easy access to the global, per-request attributes without passing them deeply |
| MEDIUM | activesupport/lib/active_support/cache/null_store.rb | 14 | # be cached inside blocks that utilize this strategy. See |
| LOW | …ivesupport/lib/active_support/inflector/inflections.rb | 186 | # regular expressions. You simply pass the irregular in singular and |
| LOW | railties/lib/rails/engine.rb | 234 | # URL helpers like +my_engine_articles_path+. Instead, you should simply use |
| LOW | railties/lib/rails/generators/named_base.rb | 137 | # Tries to retrieve the application name or simply return application. |
| LOW | actioncable/lib/action_cable/channel/test_case.rb | 113 | # identifiers. To do this just use: |
| LOW | activerecord/test/cases/invalid_connection_test.rb | 13 | # Can't just use current adapter; sqlite3 will create a database |
| LOW | activerecord/lib/active_record/base.rb | 42 | # And of course you can just create a bare object and specify the attributes after the fact: |
| MEDIUM | activerecord/lib/active_record/errors.rb | 538 | # Due to the aforementioned side-effects, this exception should not be raised |
| MEDIUM | activerecord/lib/active_record/nested_attributes.rb | 399 | # used in conjunction with fields_for to build a form element for the |
| MEDIUM | activerecord/lib/active_record/associations.rb | 1733 | # This option should not be specified when #belongs_to is used in conjunction with |
| MEDIUM | activerecord/lib/active_record/railtie.rb | 439 | # Conditions are written this way to be robust against custom |
| LOW | …erecord/lib/active_record/encryption/null_encryptor.rb | 5 | # An encryptor that won't decrypt or encrypt. It will just return the passed |
| LOW | …/lib/active_record/associations/through_association.rb | 55 | # situation it is more natural for the user to just create or modify their join records |
| MEDIUM | …tiverecord/lib/active_record/relation/query_methods.rb | 347 | # This method only works in conjunction with #includes. |
| LOW | …tiverecord/lib/active_record/relation/query_methods.rb | 481 | # To add multiple CTEs just pass multiple key-value pairs |
| MEDIUM | …tiverecord/lib/active_record/validations/uniqueness.rb | 229 | # Using this validation method in conjunction with |
| MEDIUM | …record/connection_adapters/abstract/connection_pool.rb | 80 | # This is the default behavior for Active Record when used in conjunction with |
| LOW | …ve_record/connection_adapters/postgresql/oid/vector.rb | 20 | # is to just return the string. |
| MEDIUM | …iverecord/lib/active_record/migration/compatibility.rb | 395 | # keys by default and MySQL uses bigint. This compat layer makes old migrations utilize |
| LOW | activerecord/lib/arel/nodes/node.rb | 147 | # Maybe we should just use `Table.engine`? :'( |
| LOW | actionview/lib/action_view/base.rb | 52 | # As you see, we use the output embeddings for the render methods. The render call itself will just return a string ho |
| LOW | actionview/lib/action_view/template.rb | 340 | # handles encodings, we simply pass the String as is to |
| LOW | actionview/lib/action_view/helpers/form_helper.rb | 430 | # If you don't want to an authenticity token field be rendered at all just pass <tt>false</tt>: |
| MEDIUM | actionview/lib/action_view/helpers/asset_url_helper.rb | 178 | # this is commonly used in conjunction with a CDN. |
| LOW | actionmailer/lib/action_mailer/base.rb | 168 | # You never instantiate your mailer class. Rather, you just call the method you defined on the class itself. |
| LOW | activestorage/app/models/active_storage/variant.rb | 36 | # has already been processed and uploaded to the service, and, if so, just return that. Otherwise it will perform |
| LOW | activestorage/app/models/active_storage/blob.rb | 18 | # If you need to create a derivative or otherwise change the blob, simply create a new blob and purge the old one. |
| LOW | activestorage/app/models/active_storage/blob.rb | 285 | # you should instead simply create a new blob based on the old one. |
| MEDIUM | activestorage/lib/active_storage/service.rb | 22 | # of the aforementioned constant under the +service+ key. For example: |
| MEDIUM | actionmailbox/lib/action_mailbox/test_helper.rb | 29 | # When you need to create a more intricate email, like a multi-part email |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | activesupport/test/core_ext/numeric_ext_test.rb | 67 | assert_equal 365.2425.days.to_f.seconds.since(@now), 1.year.to_f.seconds.since(@now) |
| CRITICAL | activesupport/test/core_ext/numeric_ext_test.rb | 69 | assert_equal 365.2425.days.to_f.seconds.since(@dtnow), 1.year.to_f.seconds.since(@dtnow) |
| CRITICAL | railties/test/application/rake_test.rb | 193 | puts Rails.application.routes.named_routes.to_h.keys.join(" ") |
| CRITICAL | railties/lib/rails/application.rb | 146 | self.class.name.underscore.dasherize.delete_suffix("/application") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | actionpack/lib/abstract_controller/caching/fragments.rb | 103 | # Check if a cached fragment from the location signified by `key` exists (see |
| LOW | activesupport/lib/active_support/file_update_checker.rb | 63 | # Check if any of the entries were updated. If so, the watched and/or |
| LOW | activesupport/lib/active_support/event_reporter.rb | 432 | # Check if debug mode is currently enabled. Debug mode is enabled on the reporter |
| LOW | …ve_support/testing/parallelization/test_distributor.rb | 27 | # Check if there is pending work. |
| LOW | activejob/lib/active_job/continuation/step.rb | 33 | # Check if the job should be interrupted, and if so raise an Interrupt exception. |
| LOW | actioncable/lib/action_cable/server/base.rb | 145 | # Check if the request origin is allowed to connect to the Action Cable server. |
| LOW | actiontext/test/dummy/config/environments/production.rb | 77 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. |
| LOW | activerecord/test/cases/batches_test.rb | 226 | # Set back to default |
| LOW | activerecord/test/cases/batches_test.rb | 238 | # Set back to default |
| LOW | activerecord/lib/active_record/inheritance.rb | 124 | # Set this to +true+ if this is an abstract class (see |
| LOW | …/lib/active_record/connection_adapters/query_intent.rb | 195 | # Check if result has been populated yet (without blocking) |
| LOW | …e_record/connection_adapters/abstract_mysql_adapter.rb | 1056 | # Set sql_mode to false or :default in variables to skip. |
| LOW | …cord/connection_adapters/abstract/schema_statements.rb | 487 | # Set this to true to make this a bulk alter query, such as |
| LOW | …onview/lib/action_view/renderer/collection_renderer.rb | 18 | # Check if this is the first iteration of the partial. |
| LOW | …onview/lib/action_view/renderer/collection_renderer.rb | 23 | # Check if this is the last iteration of the partial. |
| LOW | actionview/lib/action_view/helpers/tag_helper.rb | 1684 | # Set escape to false to disable escaping. |
| LOW | …vestorage/test/dummy/config/environments/production.rb | 77 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. |
| LOW | …onmailbox/test/dummy/config/environments/production.rb | 77 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | guides/w3c_validator.rb | 3 | # --------------------------------------------------------------------------- |
| MEDIUM | guides/w3c_validator.rb | 29 | # --------------------------------------------------------------------------- |
| MEDIUM | guides/source/rails_on_rack.md | 81 | # ------------------------------------------------------- |
| MEDIUM | guides/source/rails_on_rack.md | 86 | # --------------------------------------- |
| MEDIUM | …nnection_adapters/postgresql/explain_pretty_printer.rb | 11 | # ------------------------------------------------------------------------------ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …pack/lib/action_dispatch/routing/polymorphic_routes.rb | 52 | # Example usage: |
| LOW | activerecord/lib/active_record/schema.rb | 11 | # Usage: |
| LOW | activerecord/lib/active_record/connection_handling.rb | 166 | # Usage: |
| LOW | …ionview/lib/action_view/helpers/form_options_helper.rb | 241 | # Sample usage: |
| LOW | …ionview/lib/action_view/helpers/form_options_helper.rb | 448 | # Sample usage: |