This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler' | |
Bundler.setup(:default) | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guides :: (nateberkopec-make_guides_html_valid) » bundle exec rake guides:validate ~/Projects/rails/guides 1 ↵ | |
/Users/senny/.rbenv/versions/2.0.0-p451/bin/ruby w3c_validator.rb | |
EEEEEEEEEEEEEEEEEEEEEEEEEEE | |
Could not validate ./output/debugging_rails_applications.html because of 502 "Proxy Error" | |
EEEEEEEEE | |
Could not validate ./output/maintenance_policy.html because of 502 "Proxy Error" | |
E | |
Could not validate ./output/nested_model_forms.html because of 502 "Proxy Error" | |
E | |
Could not validate ./output/rails_application_templates.html because of 502 "Proxy Error" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler' | |
Bundler.setup(:default) | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
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: 'test123') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activerecord/test/cases/adapters/postgresql/hstore_test.rb b/activerecord/test/cases/adapters/postgresql/hstore_test.rb | |
index 90ec152..640ca73 100644 | |
--- a/activerecord/test/cases/adapters/postgresql/hstore_test.rb | |
+++ b/activerecord/test/cases/adapters/postgresql/hstore_test.rb | |
@@ -258,6 +258,34 @@ class PostgresqlHstoreTest < ActiveRecord::TestCase | |
Hstore.update_all tags: { } | |
assert_equal({ }, hstore.reload.tags) | |
end | |
+ | |
+ class TagCollection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb | |
index a22849f..021c50d 100644 | |
--- a/activerecord/lib/active_record/relation/query_methods.rb | |
+++ b/activerecord/lib/active_record/relation/query_methods.rb | |
@@ -1030,13 +1030,14 @@ module ActiveRecord | |
arel.order(*orders) unless orders.empty? | |
end | |
- VALID_DIRECTIONS = [:asc, :desc, 'asc', 'desc'] # :nodoc: | |
+ VALID_DIRECTIONS = [:asc, :desc, :ASC, :DESC, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
def extract_schema_and_table(name) | |
table, schema = name.scan(/[^".\s]+|"[^"]*"/)[0..1].collect{|m| m.gsub(/(^"|"$)/,'') }.reverse | |
[schema, table] | |
end | |
def extract_pg_identifier_from_name(name) | |
match_data = name.start_with?('"') ? name.match(/\"([^\"]+)\"/) : name.match(/([^\.]+)/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__update_callbacks | |
_attr_readonly | |
_attr_readonly= | |
_attr_readonly? | |
_commit_callbacks | |
_commit_callbacks= | |
_commit_callbacks? | |
_create_callbacks | |
_create_callbacks= | |
_create_callbacks? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md | |
index c05ed10..baf8323 100644 | |
--- a/actionview/CHANGELOG.md | |
+++ b/actionview/CHANGELOG.md | |
@@ -1,3 +1,7 @@ | |
+* Fix ActionView label translation for more than 10 nested elements. | |
+ | |
+ *Vladimir Krylov* | |
+ | |
* Added `:plain`, `:html` and `:body` option for `render` method. Please see |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end |