Skip to content

Instantly share code, notes, and snippets.

View prathamesh-sonpatki's full-sized avatar
🏠
Working from home

प्रथमेश Sonpatki prathamesh-sonpatki

🏠
Working from home
View GitHub Profile
module ActionView
module Helpers
module Tags # :nodoc:
class Base # :nodoc:
def options_for_rendering
default_options_for_rendering.merge(user_options_for_rendering)
end
def default_options_for_rendering
{}
module ActionView
module Helpers
module UserRenderOptions
def user_options_for_rendering
{}
end
end
end
end
# Stuff needs to be changed in Rails
module ActionView
module Helpers
module UserRenderOptions
def user_options_for_rendering
{}
end
end
end
end
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.2.0'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
# This connection will do for database-independent bug reports.
# https://github.com/rails/rails/issues/18926
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.2.0'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
# https://github.com/rails/rails/issues/18957
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.2.0'
require 'active_record'
require 'active_support'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.2.0'
require 'active_record'
require 'minitest/autorun'
require 'logger'
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: 'ar_test_postgres')
ActiveRecord::Base.logger = Logger.new(STDOUT)
gem 'activerecord', '4.2.0'
# gem 'activerecord', '4.1.8'
# gem 'activerecord', '4.0.12'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
# https://github.com/rails/rails/issues/19871
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.1.10'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)