2016/06/16åã®ã³ãããã§ãã
CHANGELOGã¸ã®è¿½å ã¯ããã¾ããã§ããã
Merge pull request #25339 from prathamesh-sonpatki/reuse-validate-index-length
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
ã®ä¿®æ£ã§ãã
add_index_options
ã¡ã½ããã§indexé·ã®ãã§ãã¯ãç¬èªã«è¡ã£ã¦ããã®ããæ¢åã®validate_index_length!
ã¡ã½ããã使ç¨ããããä¿®æ£ãã¦ãã¾ãã
Example had results the wrong way round [ci skip]
rails guideã®Active Record and PostgreSQL
ã®ä¿®æ£ã§ãã
Database Views
ã®é
ã«ãã£ãexampleã³ã¼ãã®å®è¡çµæããå®éã®çµæã¨ç°ãªã£ã¦ããã®ãä¿®æ£ãã¦ãã¾ãã
Merge pull request #25271 from kamipo/prevent_range_error_for_exists
Active Recordã®ä¿®æ£ã§ãã
FinderMethods#exists?
ã«ä¸æ£ãªå¤(intãã巨大ãªæ°åç)ãæå®ããå ´åãRangeError
ãraiseããã¦ãã¾ã£ã¦ããã®ããå¿
ãbooleanã®å¤(ã¨ã©ã¼ã®å ´åfalse
)ãè¿ãããä¿®æ£ãã¦ãã¾ãã
actionview/lib/action_view/digestor.rb
ã®ä¿®æ£ã§ãã
template digestãä½æããéã«ãkeyã«formatã®æ å ±ã使ç¨ããããä¿®æ£ãã¦ãã¾ãã
app/views/api/todos/_todo.json.jbuilder
ã¨app/views/todos/_todo.html.erb
ã¨ããããã«ãå
é¨ã§æ±ãããpathãåã(todos/_todo
)ã§formatãéããããªtemplateã®å ´åã«ãåãdigestãçæããã¦ãã¾ããã°ããã£ãçºã
Explicity find with the rendered format to handle searching multiple view paths correctly
actionview/lib/action_view/digestor.rb
ã®ä¿®æ£ã§ãã
ActionView::PathSet#initialize
ã«è¤æ°ã®view pathã渡ããéã«ãActionView::Digestor.tree
ã¡ã½ããã§formatã®æ
å ±ãæ£ããåå¾åºæ¥ãããä¿®æ£ãã¦ãã¾ããã
Fix finding templates for digesting for / requests that render a non-default (html) template
actionview/lib/action_view/digestor.rb
ã®ä¿®æ£ã§ãã
Accpet headerã«*/*
ãæå®ãããå ´åã«ãdigestã®è¨ç®æã«html
以å¤ã®formatã®templateãå«ã¾ããªããã°ããã£ãã®ãä¿®æ£ãã¦ãã¾ãã
actionview/test/template/digestor_test.rb
ã®ä¿®æ£ã§ãã
test_different_formats
ãtest_different_formats_with_same_logical_template_names_results_in_different_digests
ã«ãªãã¼ã ãã¦ãã¾ãã
Add test for nested html dependencies with same logical name as templates for other formats
actionview/test/template/digestor_test.rb
ã®ä¿®æ£ã§ãã
åãlogical nameã§éãformatã®ãã³ãã¬ã¼ããããæã«ãActionView::Digestor.tree
ã§æ£ããformatã®å¤ãåå¾åºæ¥ãäºã確èªãããã¹ãã追å ãã¦ãã¾ãã
[ci skip] Remove duplicate alias documentation in ActiveModel::Validations
activemodel/lib/active_model/validations.rb
ã®docã®ä¿®æ£ã§ãã
ActiveModel::Validations#valid?
ã¡ã½ããã®docå
ã«ãvalidate
ã¡ã½ããã®aliasã§ããæ¨ã®èª¬æãè¤æ°ãã£ãã®ã§ãçæ¹åé¤ãã¦ãã¾ãã