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
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/test/functional/posts_controller_test.rb
fixtures/rails5_api/test/functional/posts_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/posts_controller_test.rb # Symlinked to fixture applications begin # Padrino require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/test/functional/users_controller_test.rb
fixtures/rails5_api/test/functional/users_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/users_controller_test.rb # Symlinked to fixture applications begin # Sinatra require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/application.rb
fixtures/rails5_api/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 "action_controller/railtie" require "action_mailer/railtie" require "action_view/railtie" require "action_cable/engine" # require "sprockets/railti...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/environment.rb
fixtures/rails5_api/config/environment.rb
# Load the Rails application. require_relative 'application' # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/puma.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/routes.rb
fixtures/rails5_api/config/routes.rb
Rails.application.routes.draw do resources :users resources :posts do member do get 'renderer' end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/spring.rb
fixtures/rails5_api/config/spring.rb
%w( .ruby-version .rbenv-vars tmp/restart.txt tmp/caching-dev.txt ).each { |path| Spring.watch(path) }
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/boot.rb
fixtures/rails5_api/config/boot.rb
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile.
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/filter_parameter_logging.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/application_controller_renderer.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/new_framework_defaults.rb
fixtures/rails5_api/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 Guide for Upgrading Ruby on Rails for more info on each option. # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. # Previous versions had false. ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/wrap_parameters.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/inflections.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/backtrace_silencers.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/mime_types.rb
fixtures/rails5_api/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 'application/vnd.rabl-test_v1+json', :rabl_test_v1
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/initializers/cors.rb
fixtures/rails5_api/config/initializers/cors.rb
# Be sure to restart your server when you modify this file. # Avoid CORS issues when API is called from the frontend app. # Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests. # Read more: https://github.com/cyu/rack-cors # Rails.application.config.middleware.insert_before 0, R...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/environments/test.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/environments/development.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails5_api/config/environments/production.rb
fixtures/rails5_api/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/app/helpers/posts_helper.rb
fixtures/rails2/app/helpers/posts_helper.rb
module PostsHelper end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/app/helpers/users_helper.rb
fixtures/rails2/app/helpers/users_helper.rb
module UsersHelper end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/app/helpers/application_helper.rb
fixtures/rails2/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/app/controllers/posts_controller.rb
fixtures/rails2/app/controllers/posts_controller.rb
class PostsController < ApplicationController def index @posts = Post.all(:order => "id ASC") respond_to do |format| format.json { render "posts/index" } end end def show @post = Post.find(params[:id]) respond_to do |format| format.json { render "posts/show" } end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/app/controllers/users_controller.rb
fixtures/rails2/app/controllers/users_controller.rb
class UsersController < ApplicationController def index @users = User.all(:order => "username ASC") respond_to do |format| format.json { render "users/index" } end end def show @user = User.find(params[:id]) respond_to do |format| format.json { render "users/show" } end end ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/app/controllers/application_controller.rb
fixtures/rails2/app/controllers/application_controller.rb
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base helper :all # include all helpers, all the time protect_from_forgery # See ActionController::RequestForgeryPr...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/db/seeds.rb
fixtures/rails2/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' }]) # Major.create(:name...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/db/schema.rb
fixtures/rails2/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 data...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/test/test_helper.rb
fixtures/rails2/test/test_helper.rb
# Load Silence Functionality require File.expand_path(File.dirname(__FILE__) + "/../../../test/silence.rb") # Load Environment silence_warnings do ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' end # Load Riot Test Environment require Fi...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/test/functionals/posts_controller_test.rb
fixtures/rails2/test/functionals/posts_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/posts_controller_test.rb # Symlinked to fixture applications begin # Padrino require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/test/functionals/users_controller_test.rb
fixtures/rails2/test/functionals/users_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/users_controller_test.rb # Symlinked to fixture applications begin # Sinatra require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/environment.rb
fixtures/rails2/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.3.18' unless defined? RAILS_GEM_VERSION # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/routes.rb
fixtures/rails2/config/routes.rb
ActionController::Routing::Routes.draw do |map| map.resources :posts map.resources :users # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign v...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/preinitializer.rb
fixtures/rails2/config/preinitializer.rb
begin require "rubygems" require "bundler" rescue LoadError raise "Could not load the bundler gem. Install it with `gem install bundler`." end if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24") raise RuntimeError, "Your bundler version is too old for Rails 2.3." + "Run `gem install bundler`...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/boot.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/initializers/session_store.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/initializers/new_rails_defaults.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/initializers/inflections.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/initializers/cookie_verification_secret.rb
fixtures/rails2/config/initializers/cookie_verification_secret.rb
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies 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 atta...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/initializers/backtrace_silencers.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/initializers/mime_types.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/environments/test.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/environments/development.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails2/config/environments/production.rb
fixtures/rails2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/jobs/application_job.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/controllers/posts_controller.rb
fixtures/rails6/app/controllers/posts_controller.rb
class PostsController < ApplicationController respond_to :json, :xml, :html, :rabl_test_v1 def index @posts = Post.order('id ASC').load end def show @post = Post.find(params[:id]) end def renderer post = Post.find(params[:id]) render json: Rabl.render(post, 'posts/renderer', view_path: '...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/controllers/users_controller.rb
fixtures/rails6/app/controllers/users_controller.rb
class UsersController < ApplicationController respond_to :json def index @users = User.order('username ASC').load end def show @user = User.find(params[:id]) end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/controllers/application_controller.rb
fixtures/rails6/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/mailers/application_mailer.rb
fixtures/rails6/app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' layout 'mailer' end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/channels/application_cable/channel.rb
fixtures/rails6/app/channels/application_cable/channel.rb
module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/app/channels/application_cable/connection.rb
fixtures/rails6/app/channels/application_cable/connection.rb
module ApplicationCable class Connection < ActionCable::Connection::Base end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/db/seeds.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/db/schema.rb
fixtures/rails6/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. # # This file is the source Rails uses to define your schema when running `rails #...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/db/migrate/20111002092016_create_users.rb
fixtures/rails6/db/migrate/20111002092016_create_users.rb
class CreateUsers < ActiveRecord::Migration[6.0] def change create_table :users do |t| t.string :username t.string :email t.string :location t.boolean :is_admin t.timestamps end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/db/migrate/20111002092019_create_posts.rb
fixtures/rails6/db/migrate/20111002092019_create_posts.rb
class CreatePosts < ActiveRecord::Migration[6.0] def change create_table :posts do |t| t.integer :user_id t.string :title t.text :body t.timestamps end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/db/migrate/20111002092024_create_phone_numbers.rb
fixtures/rails6/db/migrate/20111002092024_create_phone_numbers.rb
class CreatePhoneNumbers < ActiveRecord::Migration[6.0] def change create_table :phone_numbers do |t| t.integer :user_id t.boolean :is_primary t.string :area_code t.string :prefix t.string :suffix t.string :name end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/test/application_system_test_case.rb
fixtures/rails6/test/application_system_test_case.rb
require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :chrome, screen_size: [1400, 1400] end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/test/test_helper.rb
fixtures/rails6/test/test_helper.rb
# Load Silence Functionality require File.expand_path(File.dirname(__FILE__) + "/../../../test/silence.rb") # Load Environment silence_warnings do ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' end # Load Riot Test Environment require File.expa...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/test/functional/posts_controller_test.rb
fixtures/rails6/test/functional/posts_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/posts_controller_test.rb # Symlinked to fixture applications begin # Padrino require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/test/functional/users_controller_test.rb
fixtures/rails6/test/functional/users_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/users_controller_test.rb # Symlinked to fixture applications begin # Sinatra require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/test/channels/application_cable/connection_test.rb
fixtures/rails6/test/channels/application_cable/connection_test.rb
require "test_helper" class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase # test "connects with cookies" do # cookies.signed[:user_id] = 42 # # connect # # assert_equal connection.user_id, "42" # end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/application.rb
fixtures/rails6/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 Rails6 class Application < Rails::Application # Initialize configuration defaults for originally generated Rails ve...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/environment.rb
fixtures/rails6/config/environment.rb
# Load the Rails application. require_relative 'application' # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/puma.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/routes.rb
fixtures/rails6/config/routes.rb
Rails.application.routes.draw do resources :users resources :posts do member do get 'renderer' end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/spring.rb
fixtures/rails6/config/spring.rb
Spring.watch( ".ruby-version", ".rbenv-vars", "tmp/restart.txt", "tmp/caching-dev.txt" )
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/boot.rb
fixtures/rails6/config/boot.rb
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/content_security_policy.rb
fixtures/rails6/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy # For further information see the following documentation # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy # Rails.application.config.content_security_policy do |policy| ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/filter_parameter_logging.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/application_controller_renderer.rb
fixtures/rails6/config/initializers/application_controller_renderer.rb
# Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # ) # end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/wrap_parameters.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/inflections.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/cookies_serializer.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/assets.rb
fixtures/rails6/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 # Add Yarn node_modules ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/backtrace_silencers.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/initializers/mime_types.rb
fixtures/rails6/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 'application/vnd.rabl-test_v1+json', :rabl_test_v1
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/environments/test.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/environments/development.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails6/config/environments/production.rb
fixtures/rails6/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/app/helpers/posts_helper.rb
fixtures/rails3_2/app/helpers/posts_helper.rb
module PostsHelper end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/app/helpers/users_helper.rb
fixtures/rails3_2/app/helpers/users_helper.rb
module UsersHelper end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/app/helpers/application_helper.rb
fixtures/rails3_2/app/helpers/application_helper.rb
module ApplicationHelper def helper_foo "BAR!" end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/app/controllers/posts_controller.rb
fixtures/rails3_2/app/controllers/posts_controller.rb
class PostsController < ApplicationController respond_to :json, :xml, :html, :rabl_test_v1 def index @posts = Post.all(:order => "id ASC") end def show @post = Post.find(params[:id]) end def renderer post = Post.find(params[:id]) render json: Rabl.render(post, 'posts/renderer', view_path:...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/app/controllers/users_controller.rb
fixtures/rails3_2/app/controllers/users_controller.rb
class UsersController < ApplicationController respond_to :json def index @users = User.all(:order => "username ASC") end def show @user = User.find(params[:id]) end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/app/controllers/application_controller.rb
fixtures/rails3_2/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery before_filter :default_format_json protected def default_format_json if(request.headers["HTTP_ACCEPT"].nil? && params[:format].nil?) request.format = "json" end end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/db/seeds.rb
fixtures/rails3_2/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 =>...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/db/schema.rb
fixtures/rails3_2/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
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/test_helper.rb
fixtures/rails3_2/test/test_helper.rb
# Load Silence Functionality require File.expand_path(File.dirname(__FILE__) + "/../../../test/silence.rb") # Load Environment silence_warnings do ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' end # Load Riot Test Environment require File.expa...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/performance/browsing_test.rb
fixtures/rails3_2/test/performance/browsing_test.rb
require 'test_helper' require 'rails/performance_test_help' class BrowsingTest < ActionDispatch::PerformanceTest # Refer to the documentation for all available options # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory] # :output => 'tmp/performance', :formats => [:f...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/unit/user_test.rb
fixtures/rails3_2/test/unit/user_test.rb
require 'test_helper' class UserTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/unit/post_test.rb
fixtures/rails3_2/test/unit/post_test.rb
require 'test_helper' class PostTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/unit/phone_number_test.rb
fixtures/rails3_2/test/unit/phone_number_test.rb
require 'test_helper' class PhoneNumberTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb
fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb
require 'test_helper' class PostsHelperTest < ActionView::TestCase end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/unit/helpers/users_helper_test.rb
fixtures/rails3_2/test/unit/helpers/users_helper_test.rb
require 'test_helper' class UsersHelperTest < ActionView::TestCase end
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/functional/posts_controller_test.rb
fixtures/rails3_2/test/functional/posts_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/posts_controller_test.rb # Symlinked to fixture applications begin # Padrino require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/test/functional/users_controller_test.rb
fixtures/rails3_2/test/functional/users_controller_test.rb
# frozen_string_literal: true # Lives in <rabl>/test/integration/users_controller_test.rb # Symlinked to fixture applications begin # Sinatra require File.expand_path(File.dirname(__FILE__) + '/../../test_config.rb') rescue LoadError # Rails require File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb') ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/config/application.rb
fixtures/rails3_2/config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) # If you want your assets lazily compiled in production, use this line # Bundler.requi...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/config/environment.rb
fixtures/rails3_2/config/environment.rb
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Rails32::Application.initialize!
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/config/routes.rb
fixtures/rails3_2/config/routes.rb
Rails32::Application.routes.draw do resources :users resources :posts do member do get 'renderer' end end # The priority is based upon order of creation: # first created -> highest priority. # Sample of regular route: # match 'products/:id' => 'catalog#view' # Keep in mind you can assig...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/config/boot.rb
fixtures/rails3_2/config/boot.rb
require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false
nesquena/rabl
https://github.com/nesquena/rabl/blob/2a19185fcc63dbeeeb8e51192e6086c31aeba749/fixtures/rails3_2/config/initializers/session_store.rb
fixtures/rails3_2/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Rails32::Application.config.session_store :cookie_store, key: '_Rails3_2_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails ...
ruby
MIT
2a19185fcc63dbeeeb8e51192e6086c31aeba749
2026-01-04T15:49:51.900070Z
false