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 |
|---|---|---|---|---|---|---|---|---|
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/text_helpers.rb | lib/wizardly/wizard/text_helpers.rb | module Wizardly
module Wizard
module TextHelpers
private
def underscore_button_name(name)
name.to_s.strip.squeeze(' ').gsub(/ /, '_').downcase
end
def button_name_to_symbol(str)
underscore_button_name(str).to_sym
end
def symbol_to_button_name(sym)
sym.to... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/page.rb | lib/wizardly/wizard/page.rb | require 'wizardly/wizard/text_helpers'
module Wizardly
module Wizard
class Page
include TextHelpers
attr_reader :id, :title, :description
attr_accessor :buttons, :fields
def initialize(config, id, fields)
@buttons = []
@title = symbol_to_button_name(id)
@id... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/utils.rb | lib/wizardly/wizard/utils.rb | module Wizardly
module Wizard
module Utils
def self.formatted_redirect(r)
return(nil) unless r
r.is_a?(Hash)? r : "'#{r}'"
end
end
end
end
| ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/button.rb | lib/wizardly/wizard/button.rb | require 'wizardly/wizard/text_helpers'
module Wizardly
module Wizard
class Button
include TextHelpers
attr_reader :name
attr_reader :id
def initialize(id, name=nil)
@id = id
@name = name || symbol_to_button_name(id)
@user_defined = false
end
d... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/dsl.rb | lib/wizardly/wizard/dsl.rb | module Wizardly
module Wizard
class DSL
def initialize(config)
@config = config
end
# DSL methods
def when_completed_redirect_to(redir); @config._when_completed_redirect_to(redir); end
def when_canceled_redirect_to(redir); @config._when_canceled_redirect_to(redir); ... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/configuration.rb | lib/wizardly/wizard/configuration.rb | require 'wizardly/wizard/utils'
require 'wizardly/wizard/dsl'
require 'wizardly/wizard/button'
require 'wizardly/wizard/page'
require 'wizardly/wizard/configuration/methods'
module Wizardly
module Wizard
class Configuration
include TextHelpers
attr_reader :pages, :completed_redirect, :canceled_redire... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/wizardly/wizard/configuration/methods.rb | lib/wizardly/wizard/configuration/methods.rb | module Wizardly
module Wizard
class Configuration
def print_callback_macros
macros = [
%w(on_post _on_post_%s_form),
%w(on_get _on_get_%s_form),
%w(on_errors _on_invalid_%s_form)
]
self.buttons.each do |id, button|
macros << ['on_'+ id.... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/generators/wizardly_app/wizardly_app_generator.rb | lib/generators/wizardly_app/wizardly_app_generator.rb | #require 'wizardly'
class WizardlyAppGenerator < Rails::Generator::Base
def initialize(runtime_args, runtime_options = {})
super
end
def manifest
record do |m|
m.directory "lib/tasks"
m.file "wizardly.rake", "lib/tasks/wizardly.rake"
end
end
def controller_class... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/generators/wizardly_controller/wizardly_controller_generator.rb | lib/generators/wizardly_controller/wizardly_controller_generator.rb | require 'wizardly'
class WizardlyControllerGenerator < Rails::Generator::Base
attr_reader :controller_name, :model_name, :completed_redirect, :canceled_redirect
def initialize(runtime_args, runtime_options = {})
super
@controller_name = @args[0].sub(/^:/,'')
@model_name = @args[1].sub(/^:/, '').unde... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/lib/generators/wizardly_scaffold/wizardly_scaffold_generator.rb | lib/generators/wizardly_scaffold/wizardly_scaffold_generator.rb | require 'wizardly'
class WizardlyScaffoldGenerator < Rails::Generator::Base
attr_reader :wizard_config, :pages, :submit_tag
attr_reader :controller_name,
:controller_class_path,
:controller_file_path,
:controller_class_nesting,
:controller_class_nesting_depth... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/environment.rb | config/environment.rb | # Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '>=2.2.1' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/routes.rb | config/routes.rb | ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
map.root :controller=>'main'
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other th... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/boot.rb | config/boot.rb | # Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
module Rails
class << self
def boot!
unless booted?
preinitialize
pick_boot.run
end
end
def booted?
... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/initializers/session_store.rb | config/initializers/session_store.rb | # Be sure to restart your server when you modify this file.
# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Act... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/initializers/new_rails_defaults.rb | config/initializers/new_rails_defaults.rb | # Be sure to restart your server when you modify this file.
# These settings change the behavior of Rails 2 apps and will be defaults
# for Rails 3. You can remove this initializer when Rails 3 is released.
if defined?(ActiveRecord)
# Include Active Record class name as root for JSON serialized output.
ActiveReco... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/initializers/inflections.rb | config/initializers/inflections.rb | # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person',... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/initializers/backtrace_silencers.rb | config/initializers/backtrace_silencers.rb | # 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 you're trying do debug a probl... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/initializers/mime_types.rb | config/initializers/mime_types.rb | # 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
# Mime::Type.register_alias "text/html", :iphone
| ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/environments/test.rb | config/environments/test.rb | # Settings specified here will take precedence over those in config/environment.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... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/environments/development.rb | config/environments/development.rb | # Settings specified here will take precedence over those in config/environment.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't have to restart the webserver when you make code changes.
config.ca... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/config/environments/production.rb | config/environments/production.rb | # Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_reque... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/rails_generators/wizardly_app/wizardly_app_generator.rb | rails_generators/wizardly_app/wizardly_app_generator.rb | #require 'wizardly'
class WizardlyAppGenerator < Rails::Generator::Base
def initialize(runtime_args, runtime_options = {})
super
end
def manifest
record do |m|
m.directory "lib/tasks"
m.file "wizardly.rake", "lib/tasks/wizardly.rake"
end
end
def controller_class... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/rails_generators/wizardly_controller/wizardly_controller_generator.rb | rails_generators/wizardly_controller/wizardly_controller_generator.rb | require 'wizardly'
class WizardlyControllerGenerator < Rails::Generator::Base
attr_reader :controller_name, :model_name, :completed_redirect, :canceled_redirect
def initialize(runtime_args, runtime_options = {})
super
@controller_name = @args[0].sub(/^:/,'')
@model_name = @args[1].sub(/^:/, '').unde... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
jeffp/wizardly | https://github.com/jeffp/wizardly/blob/130f350f3916a5079bd3db1a55c292eeb4115122/rails_generators/wizardly_scaffold/wizardly_scaffold_generator.rb | rails_generators/wizardly_scaffold/wizardly_scaffold_generator.rb | require 'wizardly'
class WizardlyScaffoldGenerator < Rails::Generator::Base
attr_reader :wizard_config, :pages, :submit_tag
attr_reader :controller_name,
:controller_class_path,
:controller_file_path,
:controller_class_nesting,
:controller_class_nesting_depth... | ruby | MIT | 130f350f3916a5079bd3db1a55c292eeb4115122 | 2026-01-04T17:48:58.245731Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/spec/spec_helper.rb | spec/spec_helper.rb | # encoding: UTF-8
require 'rubygems'
require 'bundler'
Bundler.setup(:default, :test)
Bundler.require(:default, :test)
require 'pry'
ROOT = File.dirname(File.dirname(__FILE__))
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end
$TESTING=true
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/jobs/application_job.rb | example/example/app/jobs/application_job.rb | class ApplicationJob < ActiveJob::Base
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/helpers/books_helper.rb | example/example/app/helpers/books_helper.rb | module BooksHelper
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/helpers/articles_helper.rb | example/example/app/helpers/articles_helper.rb | module ArticlesHelper
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/helpers/application_helper.rb | example/example/app/helpers/application_helper.rb | module ApplicationHelper
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/controllers/articles_controller.rb | example/example/app/controllers/articles_controller.rb | class ArticlesController < ApplicationController
before_action :set_article, only: [:show, :edit, :update, :destroy]
# GET /articles
# GET /articles.json
def index
@articles = Article.all
end
# GET /articles/1
# GET /articles/1.json
def show
end
# GET /articles/new
def new
@article = Ar... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/controllers/books_controller.rb | example/example/app/controllers/books_controller.rb | class BooksController < ApplicationController
before_action :set_book, only: [:show, :edit, :update, :destroy]
# GET /books
# GET /books.json
def index
@books = Book.all
end
# GET /books/1
# GET /books/1.json
def show
end
# GET /books/new
def new
@book = Book.new
end
# GET /books/1... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/controllers/application_controller.rb | example/example/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/models/book.rb | example/example/app/models/book.rb | class Book < ApplicationRecord
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/models/article.rb | example/example/app/models/article.rb | class Article < ApplicationRecord
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/models/application_record.rb | example/example/app/models/application_record.rb | class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/mailers/application_mailer.rb | example/example/app/mailers/application_mailer.rb | class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
layout 'mailer'
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/channels/application_cable/channel.rb | example/example/app/channels/application_cable/channel.rb | module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/app/channels/application_cable/connection.rb | example/example/app/channels/application_cable/connection.rb | module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/db/seeds.rb | example/example/db/seeds.rb | # This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Ch... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/db/schema.rb | example/example/db/schema.rb | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/db/migrate/20160708030008_create_books.rb | example/example/db/migrate/20160708030008_create_books.rb | class CreateBooks < ActiveRecord::Migration[5.0]
def change
create_table :books do |t|
t.string :title
t.timestamps
end
end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/db/migrate/20160708030050_create_articles.rb | example/example/db/migrate/20160708030050_create_articles.rb | class CreateArticles < ActiveRecord::Migration[5.0]
def change
create_table :articles do |t|
t.string :title
t.timestamps
end
end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/test/test_helper.rb | example/example/test/test_helper.rb | ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all tests here...
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/test/controllers/books_controller_test.rb | example/example/test/controllers/books_controller_test.rb | require 'test_helper'
class BooksControllerTest < ActionDispatch::IntegrationTest
setup do
@book = books(:one)
end
test "should get index" do
get books_url
assert_response :success
end
test "should get new" do
get new_book_url
assert_response :success
end
test "should create book" ... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/test/controllers/articles_controller_test.rb | example/example/test/controllers/articles_controller_test.rb | require 'test_helper'
class ArticlesControllerTest < ActionDispatch::IntegrationTest
setup do
@article = articles(:one)
end
test "should get index" do
get articles_url
assert_response :success
end
test "should get new" do
get new_article_url
assert_response :success
end
test "shoul... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/test/models/article_test.rb | example/example/test/models/article_test.rb | require 'test_helper'
class ArticleTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/test/models/book_test.rb | example/example/test/models/book_test.rb | require 'test_helper'
class BookTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/application.rb | example/example/config/application.rb | 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 Example
class Application < Rails::Application
# Settings in config/environments/* take precedence over those speci... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/environment.rb | example/example/config/environment.rb | # Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/puma.rb | example/example/config/puma.rb | # 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 minimum
# and maximum, this matches ... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/routes.rb | example/example/config/routes.rb | Rails.application.routes.draw do
resources :articles
resources :books
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/spring.rb | example/example/config/spring.rb | %w(
.ruby-version
.rbenv-vars
tmp/restart.txt
tmp/caching-dev.txt
).each { |path| Spring.watch(path) }
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/unicorn.rb | example/example/config/unicorn.rb | worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
listen 3000 # "/tmp/unicorn.sock"
pid "/tmp/unicorn.pid"
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
d... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/boot.rb | example/example/config/boot.rb | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/filter_parameter_logging.rb | example/example/config/initializers/filter_parameter_logging.rb | # 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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/application_controller_renderer.rb | example/example/config/initializers/application_controller_renderer.rb | # Be sure to restart your server when you modify this file.
# ApplicationController.renderer.defaults.merge!(
# http_host: 'example.org',
# https: false
# )
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/session_store.rb | example/example/config/initializers/session_store.rb | # Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_example_session'
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/new_framework_defaults.rb | example/example/config/initializers/new_framework_defaults.rb | # 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.
# Enable per-form CSRF tokens. Previous versions had false.
Rails.application.config.action_controller.per_form_csrf_to... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/wrap_parameters.rb | example/example/config/initializers/wrap_parameters.rb | # 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_controller) do
wrap_parameters f... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/inflections.rb | example/example/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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/cookies_serializer.rb | example/example/config/initializers/cookies_serializer.rb | # 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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/assets.rb | example/example/config/initializers/assets.rb | # 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_path
# Precompile additional ... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/backtrace_silencers.rb | example/example/config/initializers/backtrace_silencers.rb | # 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 you're trying to debug a probl... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/initializers/mime_types.rb | example/example/config/initializers/mime_types.rb | # 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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/environments/test.rb | example/example/config/environments/test.rb | 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 "scratch space" for the test suit... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/environments/development.rb | example/example/config/environments/development.rb | 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't have to restart the web serv... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/example/config/environments/production.rb | example/example/config/environments/production.rb | 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, allowing both threaded web serve... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/helpers/books_helper.rb | example/rails4/app/helpers/books_helper.rb | module BooksHelper
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/helpers/articles_helper.rb | example/rails4/app/helpers/articles_helper.rb | module ArticlesHelper
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/helpers/application_helper.rb | example/rails4/app/helpers/application_helper.rb | module ApplicationHelper
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/controllers/articles_controller.rb | example/rails4/app/controllers/articles_controller.rb | class ArticlesController < ApplicationController
before_action :set_article, only: [:show, :edit, :update, :destroy]
# GET /articles
# GET /articles.json
def index
@articles = Article.all
end
# GET /articles/1
# GET /articles/1.json
def show
end
# GET /articles/new
def new
@article = Ar... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/controllers/books_controller.rb | example/rails4/app/controllers/books_controller.rb | class BooksController < ApplicationController
before_action :set_book, only: [:show, :edit, :update, :destroy]
# GET /books
# GET /books.json
def index
@books = Book.all
end
# GET /books/1
# GET /books/1.json
def show
end
# GET /books/new
def new
@book = Book.new
end
# GET /books/1... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/controllers/application_controller.rb | example/rails4/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/models/book.rb | example/rails4/app/models/book.rb | class Book < ActiveRecord::Base
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/app/models/article.rb | example/rails4/app/models/article.rb | class Article < ActiveRecord::Base
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/db/seeds.rb | example/rails4/db/seeds.rb | # This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/db/schema.rb | example/rails4/db/schema.rb | # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/db/migrate/20140623044349_create_books.rb | example/rails4/db/migrate/20140623044349_create_books.rb | class CreateBooks < ActiveRecord::Migration
def change
create_table :books do |t|
t.string :title
t.timestamps
end
end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/db/migrate/20140623044357_create_articles.rb | example/rails4/db/migrate/20140623044357_create_articles.rb | class CreateArticles < ActiveRecord::Migration
def change
create_table :articles do |t|
t.string :title
t.timestamps
end
end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/test_helper.rb | example/rails4/test/test_helper.rb | ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration t... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/helpers/articles_helper_test.rb | example/rails4/test/helpers/articles_helper_test.rb | require 'test_helper'
class ArticlesHelperTest < ActionView::TestCase
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/helpers/books_helper_test.rb | example/rails4/test/helpers/books_helper_test.rb | require 'test_helper'
class BooksHelperTest < ActionView::TestCase
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/controllers/books_controller_test.rb | example/rails4/test/controllers/books_controller_test.rb | require 'test_helper'
class BooksControllerTest < ActionController::TestCase
setup do
@book = books(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:books)
end
test "should get new" do
get :new
assert_response :success
end
test "s... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/controllers/articles_controller_test.rb | example/rails4/test/controllers/articles_controller_test.rb | require 'test_helper'
class ArticlesControllerTest < ActionController::TestCase
setup do
@article = articles(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:articles)
end
test "should get new" do
get :new
assert_response :success
en... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/models/article_test.rb | example/rails4/test/models/article_test.rb | require 'test_helper'
class ArticleTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/test/models/book_test.rb | example/rails4/test/models/book_test.rb | require 'test_helper'
class BookTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/application.rb | example/rails4/config/application.rb | require File.expand_path('../boot', __FILE__)
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 Blog
class Application < Rails::Application
# Settings in config/environments/* take preceden... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/environment.rb | example/rails4/config/environment.rb | # Load the Rails application.
require File.expand_path('../application', __FILE__)
# Initialize the Rails application.
Rails.application.initialize!
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/routes.rb | example/rails4/config/routes.rb | Rails.application.routes.draw do
resources :articles
resources :books
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
# Example of reg... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/boot.rb | example/rails4/config/boot.rb | # Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/filter_parameter_logging.rb | example/rails4/config/initializers/filter_parameter_logging.rb | # 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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/session_store.rb | example/rails4/config/initializers/session_store.rb | # Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_blog_session'
| ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/wrap_parameters.rb | example/rails4/config/initializers/wrap_parameters.rb | # 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_controller) do
wrap_parameters f... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/inflections.rb | example/rails4/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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/cookies_serializer.rb | example/rails4/config/initializers/cookies_serializer.rb | # Be sure to restart your server when you modify this file.
Rails.application.config.action_dispatch.cookies_serializer = :json | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/backtrace_silencers.rb | example/rails4/config/initializers/backtrace_silencers.rb | # 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 you're trying to debug a probl... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/initializers/mime_types.rb | example/rails4/config/initializers/mime_types.rb | # 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 | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/environments/test.rb | example/rails4/config/environments/test.rb | 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 "scratch space" for the test suit... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/environments/development.rb | example/rails4/config/environments/development.rb | 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't have to restart the web serv... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
sonots/activerecord-refresh_connection | https://github.com/sonots/activerecord-refresh_connection/blob/5f5a742f2feae8e5fbbce1576ef4b72d81e073e4/example/rails4/config/environments/production.rb | example/rails4/config/environments/production.rb | 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, allowing both threaded web serve... | ruby | MIT | 5f5a742f2feae8e5fbbce1576ef4b72d81e073e4 | 2026-01-04T17:48:56.747439Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.