test/dummy/config/application.rb in canard-0.5.0.pre vs test/dummy/config/application.rb in canard-0.6.0.pre

- old
+ new

@@ -1,20 +1,22 @@ -require File.expand_path('../boot', __FILE__) +# frozen_string_literal: true +require File.expand_path('boot', __dir__) + # Pick the frameworks you want: -require "active_record/railtie" -require "action_controller/railtie" -require "active_resource/railtie" -require "rails/test_unit/railtie" +require 'active_record/railtie' +require 'action_controller/railtie' +require 'active_resource/railtie' +require 'rails/test_unit/railtie' -Bundler.require if defined?(Bundler) +Bundler.require if defined?(Bundler) require 'canard' module Dummy class Application < Rails::Application # Configure the default encoding used in templates for Ruby 1.9. - config.encoding = "utf-8" + config.encoding = 'utf-8' # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] # Use SQL instead of Active Record's schema dumper when creating the database. @@ -27,6 +29,5 @@ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible # parameters by using an attr_accessible or attr_protected declaration. config.active_record.whitelist_attributes = true end end -