repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/posts/post_operations/create.rb
spec/support/rails_app/app/resources/api/posts/post_operations/create.rb
# frozen_string_literal: true module Api module PostOperations class Create end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/posts/forms/update.rb
spec/support/rails_app/app/resources/api/posts/forms/update.rb
module Api module PostForms class Update end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/posts/forms/new_user.rb
spec/support/rails_app/app/resources/api/posts/forms/new_user.rb
# frozen_string_literal: true module Api module PostForms class NewUser end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/posts/forms/create_form.rb
spec/support/rails_app/app/resources/api/posts/forms/create_form.rb
module Api module PostForms class CreateForm end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/v2/categories/operations.rb
spec/support/rails_app/app/resources/api/v2/categories/operations.rb
# frozen_string_literal: true module CategoryOperations end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/v2/categories/controller.rb
spec/support/rails_app/app/resources/api/v2/categories/controller.rb
# frozen_string_literal: true module Api module V2 class CategoriesController < Api::BaseController end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/api/v2/categories/operations/create.rb
spec/support/rails_app/app/resources/api/v2/categories/operations/create.rb
# frozen_string_literal: true module CategoroyOperations class Create end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/operations.rb
spec/support/rails_app/app/resources/comments/operations.rb
# frozen_string_literal: true module CommentOperations end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/serializer.rb
spec/support/rails_app/app/resources/comments/serializer.rb
# frozen_string_literal: true class CommentSerializer < ActiveModel::Serializer end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/thing.rb
spec/support/rails_app/app/resources/comments/thing.rb
# frozen_string_literal: true class CommentThing < ActiveModel::Serializer end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/controller.rb
spec/support/rails_app/app/resources/comments/controller.rb
# frozen_string_literal: true class CommentsController < ApplicationController def index respond_to do |format| format.html format.json end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/services.rb
spec/support/rails_app/app/resources/comments/services.rb
module CommentServices end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/services/send_to_facebook.rb
spec/support/rails_app/app/resources/comments/services/send_to_facebook.rb
module CommentServices class SendToFacebook end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/operations/create.rb
spec/support/rails_app/app/resources/comments/operations/create.rb
# frozen_string_literal: true module CommentOperations class Create end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/resources/comments/replies/controller.rb
spec/support/rails_app/app/resources/comments/replies/controller.rb
# frozen_string_literal: true module Comments class RepliesController < ApplicationController def index end end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/mailers/application_mailer.rb
spec/support/rails_app/app/mailers/application_mailer.rb
# frozen_string_literal: true class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' layout 'mailer' end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/channels/application_cable/channel.rb
spec/support/rails_app/app/channels/application_cable/channel.rb
# frozen_string_literal: true module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/app/channels/application_cable/connection.rb
spec/support/rails_app/app/channels/application_cable/connection.rb
# frozen_string_literal: true module ApplicationCable class Connection < ActionCable::Connection::Base end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/db/create.rb
spec/support/rails_app/db/create.rb
require 'active_record' require 'sqlite3' # Change the following to reflect your database settings ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: ':memory:' ) # Don't show migration output when constructing fake db ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define d...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/application.rb
spec/support/rails_app/config/application.rb
# frozen_string_literal: true require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module RailsApp class Application < Rails::Application # Settings in config/environments/* ta...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/environment.rb
spec/support/rails_app/config/environment.rb
# frozen_string_literal: true # Load the Rails application. require_relative 'application' # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/puma.rb
spec/support/rails_app/config/puma.rb
# frozen_string_literal: true # Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimu...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/routes.rb
spec/support/rails_app/config/routes.rb
# frozen_string_literal: true Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html namespace :api do resources :posts resources :authors namespace :v2 do resources :categories end end resources :comments do ...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/spring.rb
spec/support/rails_app/config/spring.rb
# frozen_string_literal: true %w( .ruby-version .rbenv-vars tmp/restart.txt tmp/caching-dev.txt ).each { |path| Spring.watch(path) }
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/boot.rb
spec/support/rails_app/config/boot.rb
# frozen_string_literal: true ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile.
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/filter_parameter_logging.rb
spec/support/rails_app/config/initializers/filter_parameter_logging.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/application_controller_renderer.rb
spec/support/rails_app/config/initializers/application_controller_renderer.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # )
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/rails_module_unification.rb
spec/support/rails_app/config/initializers/rails_module_unification.rb
# frozen_string_literal: true # Aall files that follow the Drawers pattern # will be found under this folder # Drawers.directory = 'drawers'
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/session_store.rb
spec/support/rails_app/config/initializers/session_store.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_rails_app_session'
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/new_framework_defaults.rb
spec/support/rails_app/config/initializers/new_framework_defaults.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # # This file contains migration options to ease your Rails 5.0 upgrade. # # Read the Rails 5.0 release notes for more info on each option. if Rails.version > '5' # Enable per-form CSRF tokens. Previous versions had false. Ra...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/wrap_parameters.rb
spec/support/rails_app/config/initializers/wrap_parameters.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_cont...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/inflections.rb
spec/support/rails_app/config/initializers/inflections.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflect...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/cookies_serializer.rb
spec/support/rails_app/config/initializers/cookies_serializer.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. # Valid options are :json, :marshal, and :hybrid. Rails.application.config.action_dispatch.cookies_serializer = :json
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/assets.rb
spec/support/rails_app/config/initializers/assets.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/backtrace_silencers.rb
spec/support/rails_app/config/initializers/backtrace_silencers.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if ...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/initializers/mime_types.rb
spec/support/rails_app/config/initializers/mime_types.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/environments/test.rb
spec/support/rails_app/config/environments/test.rb
# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "sc...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/environments/development.rb
spec/support/rails_app/config/environments/development.rb
# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don'...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/support/rails_app/config/environments/production.rb
spec/support/rails_app/config/environments/production.rb
# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, al...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/integration/view_finding_spec.rb
spec/integration/view_finding_spec.rb
# frozen_string_literal: true require 'rails_helper' describe 'View Lookup' do context 'without a namespace' do describe CommentsController, type: :request do describe '/index' do it 'renders the html' do get '/comments' body = response.body expect(response.status).to...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/integration/auto_loading_spec.rb
spec/integration/auto_loading_spec.rb
# frozen_string_literal: true require 'rails_helper' describe 'Auto Loading' do context 'in a namespace' do context 'with traditionally named files' do it 'loads the model' do expect(Post).to be_truthy end it 'loads the serializer' do expect(Api::PostSerializer).to be_truthy ...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/spec/unit/dependency_extensions_spec.rb
spec/unit/dependency_extensions_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Drawers::DependencyExtensions do describe 'load_from_parent' do end describe 'load_from_path' do end describe 'load_missing_constant' do end end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers.rb
lib/drawers.rb
# frozen_string_literal: true require 'active_support' module Drawers DEFAULT_RESOURCE_SUFFIXES = %w( Controller Forms Serializer Operations Presenters Policy Policies Services ).freeze require 'drawers/active_support/dependency_extensions' require 'drawers/action_view/path_ex...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers/version.rb
lib/drawers/version.rb
# frozen_string_literal: true module Drawers VERSION = '1.1.0' end
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers/railtie.rb
lib/drawers/railtie.rb
# frozen_string_literal: true require 'rails/railtie' require 'action_controller' module Drawers class Railtie < Rails::Railtie railtie_name :drawers rake_tasks do load 'tasks/drawers.rake' end # for customizing where the new folder structure is # by default, everything still resides in R...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers/resource_parts.rb
lib/drawers/resource_parts.rb
# frozen_string_literal: true module Drawers class ResourceParts attr_reader :namespace, :resource_name, :resource_type, :named_resource_type, :class_path class << self def from_name(name) resource = call(name) [ resource.namespace, resource.resource_nam...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers/active_support/dependency_extensions.rb
lib/drawers/active_support/dependency_extensions.rb
# frozen_string_literal: true module Drawers module DependencyExtensions ERROR_CIRCULAR_DEPENDENCY = 'Circular dependency detected while autoloading constant' def load_from_path(file_path, qualified_name, from_mod, const_name) expanded = File.expand_path(file_path) expanded.sub!(/\.rb\z/, '') ...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers/action_view/path_extensions.rb
lib/drawers/action_view/path_extensions.rb
# frozen_string_literal: true module Drawers # prepend view paths, setting preferential lookup to the new # RMU folders # # lookup pattern # resources/:namespace/:resource/views/:action/{.:locale,}{.:formats,}{+:variants,}{.:handlers,} # prefix = resources/:namespace/:resource/views/ # # default loo...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
NullVoxPopuli/drawers
https://github.com/NullVoxPopuli/drawers/blob/75936a180b6b9c670144338584b1296af264f377/lib/drawers/action_view/resource_resolver.rb
lib/drawers/action_view/resource_resolver.rb
# frozen_string_literal: true require 'action_view' module Drawers class ResourceResolver < ::ActionView::OptimizedFileSystemResolver def initialize path = [ Rails.root, 'app', Drawers.directory, 'resources' ].reject(&:blank?).join('/') super(path) @path ...
ruby
MIT
75936a180b6b9c670144338584b1296af264f377
2026-01-04T17:34:52.468542Z
false
glenngillen/semantic_form_builder
https://github.com/glenngillen/semantic_form_builder/blob/a4f6dc9174f232192d7cca52a54e30bce5049f1d/uninstall.rb
uninstall.rb
# Uninstall hook code here
ruby
MIT
a4f6dc9174f232192d7cca52a54e30bce5049f1d
2026-01-04T17:34:58.902868Z
false
glenngillen/semantic_form_builder
https://github.com/glenngillen/semantic_form_builder/blob/a4f6dc9174f232192d7cca52a54e30bce5049f1d/install.rb
install.rb
# Copy the assets into RAILS_ROOT/public/ RAILS_ROOT = File.join(File.dirname(__FILE__), '../../../') FileUtils.cp_r( Dir[File.join(File.dirname(__FILE__), 'public')], File.join(RAILS_ROOT), :verbose => true ) # Show the README text file puts IO.read(File.join(File.dirname(__FILE__), 'README'))
ruby
MIT
a4f6dc9174f232192d7cca52a54e30bce5049f1d
2026-01-04T17:34:58.902868Z
false
glenngillen/semantic_form_builder
https://github.com/glenngillen/semantic_form_builder/blob/a4f6dc9174f232192d7cca52a54e30bce5049f1d/init.rb
init.rb
# Include hook code here
ruby
MIT
a4f6dc9174f232192d7cca52a54e30bce5049f1d
2026-01-04T17:34:58.902868Z
false
glenngillen/semantic_form_builder
https://github.com/glenngillen/semantic_form_builder/blob/a4f6dc9174f232192d7cca52a54e30bce5049f1d/test/semantic_form_builder_test.rb
test/semantic_form_builder_test.rb
require 'test/unit' class SemanticFormBuilderTest < Test::Unit::TestCase # Replace this with your real tests. def test_this_plugin flunk end end
ruby
MIT
a4f6dc9174f232192d7cca52a54e30bce5049f1d
2026-01-04T17:34:58.902868Z
false
glenngillen/semantic_form_builder
https://github.com/glenngillen/semantic_form_builder/blob/a4f6dc9174f232192d7cca52a54e30bce5049f1d/lib/semantic_form_builder.rb
lib/semantic_form_builder.rb
class SemanticFormBuilder < ActionView::Helpers::FormBuilder include SemanticFormHelper def field_settings(method, options = {}, tag_value = nil) field_name = "#{@object_name}_#{method.to_s}" default_label = tag_value.nil? ? "#{method.to_s.gsub(/\_/, " ")}" : "#{tag_value.to_s.gsub(/\_/, " ")}" label...
ruby
MIT
a4f6dc9174f232192d7cca52a54e30bce5049f1d
2026-01-04T17:34:58.902868Z
false
glenngillen/semantic_form_builder
https://github.com/glenngillen/semantic_form_builder/blob/a4f6dc9174f232192d7cca52a54e30bce5049f1d/lib/semantic_form_helper.rb
lib/semantic_form_helper.rb
module SemanticFormHelper def wrapping(type, field_name, label, field, options = {}) help = %Q{<span class="help">#{options[:help]}</span>} if options[:help] to_return = [] to_return << %Q{<div class="#{type}-field #{options[:class]}">} to_return << %Q{<label for="#{field_name}">#{label}#{help}...
ruby
MIT
a4f6dc9174f232192d7cca52a54e30bce5049f1d
2026-01-04T17:34:58.902868Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/safer_rails_console_spec.rb
spec/safer_rails_console_spec.rb
# frozen_string_literal: true describe SaferRailsConsole do describe "RAILS_ENV=default (development)" do it ".environment_name" do expect(described_class.environment_name).to eq('dev') end it ".prompt_color" do expect(described_class.prompt_color).to eq(SaferRailsConsole::Colors::GREEN) ...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/spec_helper.rb
spec/spec_helper.rb
# frozen_string_literal: true require 'bundler/setup' require 'climate_control' require 'mixlib/shellout' require 'safer_rails_console' DB_ADAPTERS = [:postgresql, :mysql2].freeze RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = '.rs...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/integration/consoles/irb_spec.rb
spec/integration/consoles/irb_spec.rb
# frozen_string_literal: true describe "Integration: consoles/irb" do let(:app_name) { "rails#{::Rails.version[0..2].tr('.', '')}" } let(:cmd_stdout) do result = run_console(input: 'exit') result.stdout end it "displays a colored prompt" do expect(cmd_stdout).to include('[32m') end it "displa...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/integration/patches/railtie_spec.rb
spec/integration/patches/railtie_spec.rb
# frozen_string_literal: true describe "Integration: patches/railtie" do let(:cmd_stdout) do result = run_console(input: 'exit') result.stdout end context "sandbox" do let(:cmd_stdout) do result = run_console(rails_env: rails_env, input: 'exit') result.error! result.stdout end ...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/integration/patches/boot_spec.rb
spec/integration/patches/boot_spec.rb
# frozen_string_literal: true describe "Integration: patches/boot" do context "sandbox_flag" do let(:cmd_stdout) do result = run_console('--help') result.stdout end it "adds relevant flags to 'rails console'" do expect(cmd_stdout).to include('--no-sandbox') expect(cmd_stdout).to ...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/integration/patches/sandbox_spec.rb
spec/integration/patches/sandbox_spec.rb
# frozen_string_literal: true require_relative '../../contexts/db_sandbox' describe "Integration: patches/sandbox" do include_context "db sandbox context" context "for PostgreSQL" do it_behaves_like "auto_rollback" it_behaves_like "read_only" end context "for Mysql" do let(:adapter) { :mysql2 } ...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/app/jobs/application_job.rb
spec/internal/rails_8_1/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base # Automatically retry jobs that encountered a deadlock # retry_on ActiveRecord::Deadlocked # Most jobs are safe to ignore if the underlying records are no longer available # discard_on ActiveJob::DeserializationError end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/app/helpers/application_helper.rb
spec/internal/rails_8_1/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/app/controllers/application_controller.rb
spec/internal/rails_8_1/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. allow_browser versions: :modern end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/app/models/application_record.rb
spec/internal/rails_8_1/app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base primary_abstract_class end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/app/models/model.rb
spec/internal/rails_8_1/app/models/model.rb
# frozen_string_literal: true class Model < ApplicationRecord end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/db/seeds.rb
spec/internal/rails_8_1/db/seeds.rb
# This file should ensure the existence of records required to run the application in every environment (production, # development, test). The code here should be idempotent so that it can be executed at any point in every environment. # The data can then be loaded with the bin/rails db:seed command (or created alongsi...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/db/schema.rb
spec/internal/rails_8_1/db/schema.rb
# frozen_string_literal: true ActiveRecord::Schema.define do create_table :models end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/application.rb
spec/internal/rails_8_1/config/application.rb
require_relative "boot" require "rails" # Pick the frameworks you want: require "active_model/railtie" require "active_job/railtie" require "active_record/railtie" # require "active_storage/engine" require "action_controller/railtie" # require "action_mailer/railtie" # require "action_mailbox/engine" # require "action...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/environment.rb
spec/internal/rails_8_1/config/environment.rb
# Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/puma.rb
spec/internal/rails_8_1/config/puma.rb
# This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. # # Puma starts a configurable number of processes (workers) and each process # serve...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/routes.rb
spec/internal/rails_8_1/config/routes.rb
Rails.application.routes.draw do # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. # Can be used by load balancers and uptime monitors to verify that the app is live. get...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/boot.rb
spec/internal/rails_8_1/config/boot.rb
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. require "safer_rails_console/patches/boot"
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/initializers/content_security_policy.rb
spec/internal/rails_8_1/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy. # See the Securing Rails Applications Guide for more information: # https://guides.rubyonrails.org/security.html#content-security-policy-header # Rails.application.configure do # config.content_security...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/initializers/filter_parameter_logging.rb
spec/internal/rails_8_1/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. # Use this to limit dissemination of sensitive information. # See the ActiveSupport::ParameterFilter documentation for supported notations and behavio...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/initializers/inflections.rb
spec/internal/rails_8_1/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/environments/test.rb
spec/internal/rails_8_1/config/environments/test.rb
# The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! Rails.application.configure do # Settings...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/environments/development.rb
spec/internal/rails_8_1/config/environments/development.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Make code changes take effect immediately without server restart. config.enable_reloading = true # Do not eager load code on boot. config.eager...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_1/config/environments/production.rb
spec/internal/rails_8_1/config/environments/production.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.enable_reloading = false # Eager load code on boot for better performance and memory savings (ignor...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/app/jobs/application_job.rb
spec/internal/rails_8_0/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base # Automatically retry jobs that encountered a deadlock # retry_on ActiveRecord::Deadlocked # Most jobs are safe to ignore if the underlying records are no longer available # discard_on ActiveJob::DeserializationError end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/app/helpers/application_helper.rb
spec/internal/rails_8_0/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/app/controllers/application_controller.rb
spec/internal/rails_8_0/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. allow_browser versions: :modern end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/app/models/application_record.rb
spec/internal/rails_8_0/app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base primary_abstract_class end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/app/models/model.rb
spec/internal/rails_8_0/app/models/model.rb
# frozen_string_literal: true class Model < ApplicationRecord end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/db/seeds.rb
spec/internal/rails_8_0/db/seeds.rb
# This file should ensure the existence of records required to run the application in every environment (production, # development, test). The code here should be idempotent so that it can be executed at any point in every environment. # The data can then be loaded with the bin/rails db:seed command (or created alongsi...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/db/schema.rb
spec/internal/rails_8_0/db/schema.rb
# frozen_string_literal: true ActiveRecord::Schema.define do create_table :models end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/application.rb
spec/internal/rails_8_0/config/application.rb
require_relative "boot" require "rails" # Pick the frameworks you want: require "active_model/railtie" require "active_job/railtie" require "active_record/railtie" # require "active_storage/engine" require "action_controller/railtie" # require "action_mailer/railtie" # require "action_mailbox/engine" # require "action...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/environment.rb
spec/internal/rails_8_0/config/environment.rb
# Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/puma.rb
spec/internal/rails_8_0/config/puma.rb
# This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. # # Puma starts a configurable number of processes (workers) and each process # serve...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/routes.rb
spec/internal/rails_8_0/config/routes.rb
Rails.application.routes.draw do # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. # Can be used by load balancers and uptime monitors to verify that the app is live. get...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/boot.rb
spec/internal/rails_8_0/config/boot.rb
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. require "safer_rails_console/patches/boot"
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/initializers/content_security_policy.rb
spec/internal/rails_8_0/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy. # See the Securing Rails Applications Guide for more information: # https://guides.rubyonrails.org/security.html#content-security-policy-header # Rails.application.configure do # config.content_security...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/initializers/filter_parameter_logging.rb
spec/internal/rails_8_0/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. # Use this to limit dissemination of sensitive information. # See the ActiveSupport::ParameterFilter documentation for supported notations and behavio...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/initializers/inflections.rb
spec/internal/rails_8_0/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/environments/test.rb
spec/internal/rails_8_0/config/environments/test.rb
# The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! Rails.application.configure do # Settings...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/environments/development.rb
spec/internal/rails_8_0/config/environments/development.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Make code changes take effect immediately without server restart. config.enable_reloading = true # Do not eager load code on boot. config.eager...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_8_0/config/environments/production.rb
spec/internal/rails_8_0/config/environments/production.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.enable_reloading = false # Eager load code on boot for better performance and memory savings (ignor...
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_7_2/app/jobs/application_job.rb
spec/internal/rails_7_2/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base # Automatically retry jobs that encountered a deadlock # retry_on ActiveRecord::Deadlocked # Most jobs are safe to ignore if the underlying records are no longer available # discard_on ActiveJob::DeserializationError end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_7_2/app/helpers/application_helper.rb
spec/internal/rails_7_2/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false
salsify/safer_rails_console
https://github.com/salsify/safer_rails_console/blob/31d88c2ea836114bf6244e923b74aa4098a12136/spec/internal/rails_7_2/app/controllers/application_controller.rb
spec/internal/rails_7_2/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base end
ruby
MIT
31d88c2ea836114bf6244e923b74aa4098a12136
2026-01-04T17:34:59.569870Z
false