Skip to content

Instantly share code, notes, and snippets.

@123ish
Last active June 20, 2020 15:31
Show Gist options
  • Save 123ish/52ef3621520113143c5f553ac9ee1202 to your computer and use it in GitHub Desktop.
Save 123ish/52ef3621520113143c5f553ac9ee1202 to your computer and use it in GitHub Desktop.
Sampe gist - active_support.rb
# test gist
# just a code chunk
require "securerandom"
require "active_support/dependencies/autoload"
....
module ActiveSupport
extend ActiveSupport::Autoload
autoload :Concern
autoload :ActionableError
autoload :ConfigurationFile
.....
eager_autoload do
autoload :BacktraceCleaner
autoload :ProxyObject
autoload :Benchmarkable
....
end
autoload :Rescuable
autoload :SafeBuffer, "active_support/core_ext/string/output_safety"
autoload :TestCase
def self.eager_load!
super
NumberHelper.eager_load!
end
cattr_accessor :test_order # :nodoc:
def self.to_time_preserves_timezone
DateAndTime::Compatibility.preserve_timezone
end
....
end
autoload :I18n, "active_support/i18n"
@123ish
Copy link
Author

123ish commented Jun 20, 2020

This is a test of gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment