Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
21e5fd4a
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
21e5fd4a
编写于
12月 19, 2016
作者:
A
Akira Matsuda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Describe what we are protecting
上级
be984f02
变更
37
隐藏空白更改
内联
并排
Showing
37 changed file
with
78 addition
and
0 deletion
+78
-0
actioncable/lib/action_cable/connection/base.rb
actioncable/lib/action_cable/connection/base.rb
+2
-0
actioncable/lib/action_cable/connection/message_buffer.rb
actioncable/lib/action_cable/connection/message_buffer.rb
+2
-0
actioncable/lib/action_cable/connection/subscriptions.rb
actioncable/lib/action_cable/connection/subscriptions.rb
+2
-0
actioncable/lib/action_cable/connection/web_socket.rb
actioncable/lib/action_cable/connection/web_socket.rb
+2
-0
actionpack/lib/action_dispatch/http/mime_type.rb
actionpack/lib/action_dispatch/http/mime_type.rb
+2
-0
actionview/lib/action_view/helpers/tags/translator.rb
actionview/lib/action_view/helpers/tags/translator.rb
+2
-0
activemodel/lib/active_model/type/integer.rb
activemodel/lib/active_model/type/integer.rb
+2
-0
activemodel/lib/active_model/type/registry.rb
activemodel/lib/active_model/type/registry.rb
+4
-0
activemodel/lib/active_model/validations/acceptance.rb
activemodel/lib/active_model/validations/acceptance.rb
+2
-0
activemodel/test/cases/attribute_assignment_test.rb
activemodel/test/cases/attribute_assignment_test.rb
+2
-0
activerecord/lib/active_record/associations/association_scope.rb
...ecord/lib/active_record/associations/association_scope.rb
+2
-0
activerecord/lib/active_record/attribute.rb
activerecord/lib/active_record/attribute.rb
+2
-0
activerecord/lib/active_record/attribute/user_provided_default.rb
...cord/lib/active_record/attribute/user_provided_default.rb
+2
-0
activerecord/lib/active_record/attribute_mutation_tracker.rb
activerecord/lib/active_record/attribute_mutation_tracker.rb
+2
-0
activerecord/lib/active_record/attribute_set.rb
activerecord/lib/active_record/attribute_set.rb
+2
-0
activerecord/lib/active_record/attribute_set/builder.rb
activerecord/lib/active_record/attribute_set/builder.rb
+2
-0
activerecord/lib/active_record/attribute_set/yaml_encoder.rb
activerecord/lib/active_record/attribute_set/yaml_encoder.rb
+2
-0
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
...record/connection_adapters/abstract/schema_definitions.rb
+2
-0
activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb
...b/active_record/connection_adapters/postgresql/oid/bit.rb
+2
-0
activerecord/lib/active_record/enum.rb
activerecord/lib/active_record/enum.rb
+2
-0
activerecord/lib/active_record/railties/controller_runtime.rb
...verecord/lib/active_record/railties/controller_runtime.rb
+2
-0
activerecord/lib/active_record/relation/predicate_builder.rb
activerecord/lib/active_record/relation/predicate_builder.rb
+2
-0
activerecord/lib/active_record/relation/predicate_builder/array_handler.rb
...active_record/relation/predicate_builder/array_handler.rb
+2
-0
activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb
...d/relation/predicate_builder/association_query_handler.rb
+2
-0
activerecord/lib/active_record/relation/predicate_builder/base_handler.rb
.../active_record/relation/predicate_builder/base_handler.rb
+2
-0
activerecord/lib/active_record/relation/predicate_builder/class_handler.rb
...active_record/relation/predicate_builder/class_handler.rb
+2
-0
activerecord/lib/active_record/relation/predicate_builder/polymorphic_array_handler.rb
...d/relation/predicate_builder/polymorphic_array_handler.rb
+2
-0
activerecord/lib/active_record/relation/where_clause.rb
activerecord/lib/active_record/relation/where_clause.rb
+2
-0
activerecord/lib/active_record/relation/where_clause_factory.rb
...record/lib/active_record/relation/where_clause_factory.rb
+2
-0
activerecord/lib/active_record/table_metadata.rb
activerecord/lib/active_record/table_metadata.rb
+2
-0
activerecord/lib/active_record/type/adapter_specific_registry.rb
...ecord/lib/active_record/type/adapter_specific_registry.rb
+4
-0
activerecord/lib/active_record/type_caster/connection.rb
activerecord/lib/active_record/type_caster/connection.rb
+2
-0
activerecord/lib/active_record/type_caster/map.rb
activerecord/lib/active_record/type_caster/map.rb
+2
-0
activerecord/lib/rails/generators/active_record/migration/migration_generator.rb
...generators/active_record/migration/migration_generator.rb
+2
-0
activesupport/lib/active_support/subscriber.rb
activesupport/lib/active_support/subscriber.rb
+2
-0
railties/lib/rails/generators/named_base.rb
railties/lib/rails/generators/named_base.rb
+2
-0
railties/lib/rails/generators/resource_helpers.rb
railties/lib/rails/generators/resource_helpers.rb
+2
-0
未找到文件。
actioncable/lib/action_cable/connection/base.rb
浏览文件 @
21e5fd4a
...
...
@@ -133,6 +133,8 @@ def on_close(reason, code) # :nodoc:
send_async
:handle_close
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
# The request that initiated the WebSocket connection is available here. This gives access to the environment, cookies, etc.
def
request
...
...
actioncable/lib/action_cable/connection/message_buffer.rb
浏览文件 @
21e5fd4a
...
...
@@ -28,6 +28,8 @@ def process!
receive_buffered_messages
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:connection
attr_reader
:buffered_messages
...
...
actioncable/lib/action_cable/connection/subscriptions.rb
浏览文件 @
21e5fd4a
...
...
@@ -61,6 +61,8 @@ def unsubscribe_from_all
subscriptions
.
each
{
|
id
,
channel
|
remove_subscription
(
channel
)
}
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:connection
,
:subscriptions
...
...
actioncable/lib/action_cable/connection/web_socket.rb
浏览文件 @
21e5fd4a
...
...
@@ -32,6 +32,8 @@ def rack_response
websocket
.
rack_response
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:websocket
end
...
...
actionpack/lib/action_dispatch/http/mime_type.rb
浏览文件 @
21e5fd4a
...
...
@@ -278,6 +278,8 @@ def html?
def
all?
;
false
;
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:string
,
:synonyms
...
...
actionview/lib/action_view/helpers/tags/translator.rb
浏览文件 @
21e5fd4a
...
...
@@ -14,6 +14,8 @@ def translate
translated_attribute
||
human_attribute_name
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:object_name
,
:method_and_value
,
:scope
,
:model
...
...
activemodel/lib/active_model/type/integer.rb
浏览文件 @
21e5fd4a
...
...
@@ -29,6 +29,8 @@ def serialize(value)
result
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:range
...
...
activemodel/lib/active_model/type/registry.rb
浏览文件 @
21e5fd4a
...
...
@@ -21,6 +21,8 @@ def lookup(symbol, *args)
end
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:registrations
...
...
@@ -55,6 +57,8 @@ def matches?(type_name, *args, **kwargs)
type_name
==
name
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:name
,
:block
...
...
activemodel/lib/active_model/validations/acceptance.rb
浏览文件 @
21e5fd4a
...
...
@@ -56,6 +56,8 @@ def define_on(klass)
klass
.
send
(
:attr_writer
,
*
attr_writers
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:attributes
...
...
activemodel/test/cases/attribute_assignment_test.rb
浏览文件 @
21e5fd4a
...
...
@@ -16,6 +16,8 @@ def broken_attribute=(value)
raise
ErrorFromAttributeWriter
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_writer
:metadata
...
...
activerecord/lib/active_record/associations/association_scope.rb
浏览文件 @
21e5fd4a
...
...
@@ -49,6 +49,8 @@ def self.get_bind_values(owner, chain)
binds
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:value_transformation
...
...
activerecord/lib/active_record/attribute.rb
浏览文件 @
21e5fd4a
...
...
@@ -128,6 +128,8 @@ def encode_with(coder)
coder
[
"value"
]
=
value
if
defined?
(
@value
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:original_attribute
...
...
activerecord/lib/active_record/attribute/user_provided_default.rb
浏览文件 @
21e5fd4a
...
...
@@ -20,6 +20,8 @@ def with_type(type)
self
.
class
.
new
(
name
,
user_provided_value
,
type
,
original_attribute
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:user_provided_value
...
...
activerecord/lib/active_record/attribute_mutation_tracker.rb
浏览文件 @
21e5fd4a
...
...
@@ -60,6 +60,8 @@ def force_change(attr_name)
forced_changes
<<
attr_name
.
to_s
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:attributes
,
:forced_changes
...
...
activerecord/lib/active_record/attribute_set.rb
浏览文件 @
21e5fd4a
...
...
@@ -98,6 +98,8 @@ def ==(other)
attributes
==
other
.
attributes
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:attributes
...
...
activerecord/lib/active_record/attribute_set/builder.rb
浏览文件 @
21e5fd4a
...
...
@@ -90,6 +90,8 @@ def marshal_load(delegate_hash)
@materialized
=
true
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:types
,
:values
,
:additional_types
,
:delegate_hash
,
:default
...
...
activerecord/lib/active_record/attribute_set/yaml_encoder.rb
浏览文件 @
21e5fd4a
...
...
@@ -31,6 +31,8 @@ def decode(coder)
end
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:default_types
...
...
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
浏览文件 @
21e5fd4a
...
...
@@ -100,6 +100,8 @@ def add_to(table)
end
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:name
,
:polymorphic
,
:index
,
:foreign_key
,
:type
,
:options
...
...
activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb
浏览文件 @
21e5fd4a
...
...
@@ -41,6 +41,8 @@ def hex?
/\A[0-9A-F]*\Z/i
.
match?
(
value
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:value
...
...
activerecord/lib/active_record/enum.rb
浏览文件 @
21e5fd4a
...
...
@@ -140,6 +140,8 @@ def assert_valid_value(value)
end
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:name
,
:mapping
,
:subtype
...
...
activerecord/lib/active_record/railties/controller_runtime.rb
浏览文件 @
21e5fd4a
...
...
@@ -6,6 +6,8 @@ module Railties # :nodoc:
module
ControllerRuntime
#:nodoc:
extend
ActiveSupport
::
Concern
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_internal
:db_runtime
...
...
activerecord/lib/active_record/relation/predicate_builder.rb
浏览文件 @
21e5fd4a
...
...
@@ -66,6 +66,8 @@ def build(attribute, value)
handler_for
(
value
).
call
(
attribute
,
value
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:table
...
...
activerecord/lib/active_record/relation/predicate_builder/array_handler.rb
浏览文件 @
21e5fd4a
...
...
@@ -29,6 +29,8 @@ def call(attribute, value)
array_predicates
.
inject
{
|
composite
,
predicate
|
composite
.
or
(
predicate
)
}
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:predicate_builder
...
...
activerecord/lib/active_record/relation/predicate_builder/association_query_handler.rb
浏览文件 @
21e5fd4a
...
...
@@ -28,6 +28,8 @@ def call(attribute, value)
predicate_builder
.
build_from_hash
(
queries
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:predicate_builder
...
...
activerecord/lib/active_record/relation/predicate_builder/base_handler.rb
浏览文件 @
21e5fd4a
...
...
@@ -9,6 +9,8 @@ def call(attribute, value)
predicate_builder
.
build
(
attribute
,
value
.
id
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:predicate_builder
...
...
activerecord/lib/active_record/relation/predicate_builder/class_handler.rb
浏览文件 @
21e5fd4a
...
...
@@ -10,6 +10,8 @@ def call(attribute, value)
predicate_builder
.
build
(
attribute
,
value
.
name
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:predicate_builder
...
...
activerecord/lib/active_record/relation/predicate_builder/polymorphic_array_handler.rb
浏览文件 @
21e5fd4a
...
...
@@ -21,6 +21,8 @@ def call(attribute, value)
end
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:predicate_builder
...
...
activerecord/lib/active_record/relation/where_clause.rb
浏览文件 @
21e5fd4a
...
...
@@ -84,6 +84,8 @@ def self.empty
@empty
||=
new
([],
[])
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:predicates
...
...
activerecord/lib/active_record/relation/where_clause_factory.rb
浏览文件 @
21e5fd4a
...
...
@@ -27,6 +27,8 @@ def build(opts, other)
WhereClause
.
new
(
parts
,
binds
||
[])
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:klass
,
:predicate_builder
...
...
activerecord/lib/active_record/table_metadata.rb
浏览文件 @
21e5fd4a
...
...
@@ -64,6 +64,8 @@ def polymorphic_association?
association
&&
association
.
polymorphic?
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:klass
,
:arel_table
,
:association
...
...
activerecord/lib/active_record/type/adapter_specific_registry.rb
浏览文件 @
21e5fd4a
...
...
@@ -50,6 +50,8 @@ def <=>(other)
priority
<=>
other
.
priority
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:name
,
:block
,
:adapter
,
:override
...
...
@@ -110,6 +112,8 @@ def priority
super
|
4
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:options
,
:klass
...
...
activerecord/lib/active_record/type_caster/connection.rb
浏览文件 @
21e5fd4a
...
...
@@ -12,6 +12,8 @@ def type_cast_for_database(attribute_name, value)
connection
.
type_cast_from_column
(
column
,
value
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:table_name
...
...
activerecord/lib/active_record/type_caster/map.rb
浏览文件 @
21e5fd4a
...
...
@@ -11,6 +11,8 @@ def type_cast_for_database(attr_name, value)
type
.
serialize
(
value
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:types
...
...
activerecord/lib/rails/generators/active_record/migration/migration_generator.rb
浏览文件 @
21e5fd4a
...
...
@@ -13,6 +13,8 @@ def create_migration_file
migration_template
@migration_template
,
"db/migrate/
#{
file_name
}
.rb"
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:migration_action
,
:join_tables
...
...
activesupport/lib/active_support/subscriber.rb
浏览文件 @
21e5fd4a
...
...
@@ -52,6 +52,8 @@ def subscribers
@@subscribers
||=
[]
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:subscriber
,
:notifier
,
:namespace
...
...
railties/lib/rails/generators/named_base.rb
浏览文件 @
21e5fd4a
...
...
@@ -32,6 +32,8 @@ def js_template(source, destination)
end
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:file_name
...
...
railties/lib/rails/generators/resource_helpers.rb
浏览文件 @
21e5fd4a
...
...
@@ -23,6 +23,8 @@ def initialize(*args) #:nodoc:
assign_controller_names!
(
controller_name
.
pluralize
)
end
# TODO Change this to private once we've dropped Ruby 2.2 support.
# Workaround for Ruby 2.2 "private attribute?" warning.
protected
attr_reader
:controller_name
,
:controller_file_name
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录