{"id":2251,"date":"2013-03-22T11:36:15","date_gmt":"2013-03-22T02:36:15","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=2251"},"modified":"2018-11-14T16:33:55","modified_gmt":"2018-11-14T07:33:55","slug":"activesupportconcern-%e3%81%a7%e3%83%8f%e3%83%83%e3%83%94%e3%83%bc%e3%81%aa%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%83%a9%e3%82%a4%e3%83%95%e3%82%92%e9%80%81%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2013\/03\/22\/activesupportconcern-%e3%81%a7%e3%83%8f%e3%83%83%e3%83%94%e3%83%bc%e3%81%aa%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%83%a9%e3%82%a4%e3%83%95%e3%82%92%e9%80%81%e3%82%8b\/","title":{"rendered":"ActiveSupport::Concern \u3067\u30cf\u30c3\u30d4\u30fc\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u30e9\u30a4\u30d5\u3092\u9001\u308b"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u524d\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u300c<a title=\"Rails: include\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u6642\u306b\u8ffd\u52a0\u3059\u308b\u983b\u51fa\u30d1\u30bf\u30fc\u30f3\" href=\"http:\/\/www.techscore.com\/blog\/2013\/03\/01\/rails-include%e3%81%95%e3%82%8c%e3%81%9f%e6%99%82%e3%81%ab%e3%82%af%e3%83%a9%e3%82%b9%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a8%e3%82%a4%e3%83%b3%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%b9%e3%83%a1\/\">include\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u6642\u306b\u8ffd\u52a0\u3059\u308b\u983b\u51fa\u30d1\u30bf\u30fc\u30f3<\/a>\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u305d\u308c\u306b\u95a2\u3059\u308b\u5b9a\u5f62\u51e6\u7406\u3092\u80a9\u4ee3\u308f\u308a\u3057\u3066\u304f\u308c\u308b ActiveSupport::Concern \u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>include\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u6642\u306b\u8ffd\u52a0\u3059\u308b\u30d1\u30bf\u30fc\u30f3<\/h2>\n<h3>Before<\/h3>\n<p>\u4ee5\u524d\u306e\u30a8\u30f3\u30c8\u30ea\uff08<a title=\"Rails: include\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u6642\u306b\u8ffd\u52a0\u3059\u308b\u983b\u51fa\u30d1\u30bf\u30fc\u30f3\" href=\"http:\/\/www.techscore.com\/blog\/2013\/03\/01\/rails-include%e3%81%95%e3%82%8c%e3%81%9f%e6%99%82%e3%81%ab%e3%82%af%e3%83%a9%e3%82%b9%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a8%e3%82%a4%e3%83%b3%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%b9%e3%83%a1\/\">include\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u6642\u306b\u8ffd\u52a0\u3059\u308b\u983b\u51fa\u30d1\u30bf\u30fc\u30f3<\/a>\uff09\u3067\u3054\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u304a\u3055\u3089\u3044\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module M\r\n  def self.included(base)\r\n    base.extend(ClassMethods)\r\n  end\r\n\r\n  module ClassMethods\r\n    def foo\r\n      puts 'foo'\r\n    end\r\n  end\r\n\r\n  def bar\r\n    puts 'bar'\r\n  end\r\nend<\/pre>\n<p>\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb M \u3092 include \u3059\u308b\u3068\u3001\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066 foo \u304c\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066 bar \u304c\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">class C\r\n  include M\r\nend\r\n\r\n# foo \u306f\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\r\nC.foo\r\n\r\n# bar \u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9.\r\nC.new.bar<\/pre>\n<p>\u3053\u3053\u307e\u3067\u304c\u3001\u304a\u3055\u3089\u3044\u3067\u3059\u3002<\/p>\n<h3>After<\/h3>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30d1\u30bf\u30fc\u30f3\u306f ActiveSupport::Concern \u3092\u7528\u3044\u308b\u3068\u3001\u3082\u3046\u5c11\u3057\u7c21\u5358\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module M\r\n  extend ActiveSupport::Concern\r\n\r\n  module ClassMethods\r\n    def foo\r\n      puts 'foo'\r\n    end\r\n  end\r\n\r\n  def bar\r\n    puts 'bar'\r\n  end\r\nend<\/pre>\n<p>ActiveSupport::Concern \u3067 extend \u3059\u308b\u3053\u3068\u3068\u5f15\u304d\u63db\u3048\u306b\u300cdef self.included(base) ... end\u300d\u306e\u90e8\u5206\u304c\u6d88\u3048\u53bb\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>include \u5143\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u30d1\u30bf\u30fc\u30f3<\/h2>\n<h3>Before<\/h3>\n<p>\u4eca\u5ea6\u306f include \u5143\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module LogicalDeleteScopes\r\n  def self.included(base)\r\n    base.class_eval do\r\n      scope :without_deleted, lambda{ where(deleted_at: nil) }\r\n    end\r\n  end \r\nend\r\n\r\nclass Article &lt; ActiveRecord::Base\r\n  include LogicalDeleteScopes\r\nend<\/pre>\n<p>\u3053\u306e LogicalDeleteScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u306f ActiveRecord::Base \u3092\u7d99\u627f\u3057\u305f\u30af\u30e9\u30b9\u306b include \u3055\u308c\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u304a\u308a\u3001include \u3059\u308b\u3068\u300c\u524a\u9664\u65e5\u6642\uff08deleted_at\uff09\u304c NULL\u300d\u3068\u3044\u3046\u6761\u4ef6\u3092\u8ffd\u52a0\u3059\u308b\u30b9\u30b3\u30fc\u30d7 without_deleted \u304c\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>4 \u884c\u76ee\u306e\u300cscope :without_deleted, ...\u300d\u306e\u90e8\u5206\u3067\u30b9\u30b3\u30fc\u30d7\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u306d\u3002include \u5143\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\uff08scope\uff09\u3092\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u300cbase.class_eval\u300d\u3067\u56f2\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">Article.without_deleted.all<\/pre>\n<h3>After<\/h3>\n<p>\u3053\u308c\u3092 ActiveSupport::Concern \u3092\u4f7f\u3063\u3066\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module LogicalDeleteScopes\r\n  extend ActiveSupport::Concern\r\n  included do\r\n    scope :without_deleted, lambda{ where(deleted_at: nil) }\r\n  end\r\nend\r\n\r\nclass Article &lt; ActiveRecord::Base\r\n  include LogicalDeleteScopes\r\nend<\/pre>\n<p>\u300cdef self.included(base) ... end\u300d\u3068\u3057\u3066\u3044\u305f\u90e8\u5206\u304c\u300cincluded do ... end\u300d\u306b\u7f6e\u304d\u63db\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>class_eval \u3082\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f included \u306b\u6e21\u3057\u305f\u30d6\u30ed\u30c3\u30af\u304c LogicalDeleteScopes \u306e include \u5143\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff08\u3064\u307e\u308a Article \u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff09\u3067\u5b9f\u884c\u3055\u308c\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u591a\u6bb5\u968e\u306b include \u3059\u308b\u30d1\u30bf\u30fc\u30f3<\/h2>\n<h3>Before<\/h3>\n<p>\u591a\u6bb5\u968e\u306b include \u3059\u308b\u30d1\u30bf\u30fc\u30f3\uff08\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3001\u3055\u3089\u306b\u5225\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u4f9d\u5b58\u3059\u308b\u30d1\u30bf\u30fc\u30f3\uff09\u3082\u898b\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module LogicalDeleteScopes\r\n  def self.included(base)\r\n    base.class_eval do\r\n      scope :without_deleted, lambda{ where(deleted_at: nil) }\r\n    end\r\n  end \r\nend\r\n\r\nmodule PublishStatusScopes\r\n  def self.included(base)\r\n    base.class_eval do\r\n      include LogicalDeleteScopes\r\n      scope :draft, lambda{ without_deleted.where(status: 'draft') }\r\n      scope :published, lambda{ without_deleted.where(status: 'published') }\r\n    end\r\n  end \r\nend\r\n\r\nclass Article &lt; ActiveRecord::Base\r\n  include PublishStatusScopes\r\nend<\/pre>\n<p>Article \u30af\u30e9\u30b9\u304c PublishStatusScopes \u306b\u4f9d\u5b58\u3057\u3001PublishStatusScopes \u306f LogicalDeleteScopes \u306b\u4f9d\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u304c\u8907\u96d1\u306b\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u6574\u7406\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u306d\u3002<\/p>\n<p>\u307e\u305a\u524d\u63d0\u6761\u4ef6\u3068\u3057\u3066\u3001<\/p>\n<ul>\n<li>Article \u306f\u4f55\u3089\u304b\u306e\u8a18\u4e8b\u3092\u8868\u3059\u30af\u30e9\u30b9\u3067\u3042\u308a\u3001\u516c\u958b\u72b6\u614b\uff08status\uff09\u3068\u524a\u9664\u65e5\u6642\uff08deleted_at\uff09\u3092\u6301\u3064\u3002<\/li>\n<li>\u516c\u958b\u72b6\u614b\uff08status\uff09\u306b\u306f\u300c\u4e0b\u66f8\u304d\u72b6\u614b\uff08'draft'\uff09\u300d\u3068\u300c\u516c\u958b\u72b6\u614b\uff08'published'\uff09\u300d\u304c\u3042\u308b\u3002<\/li>\n<li>\u524a\u9664\u65e5\u6642\uff08deleted_at\uff09\u306b\u306f\u8ad6\u7406\u524a\u9664\u3055\u308c\u305f\u65e5\u6642\u304c\u5165\u308b\u3002<\/li>\n<\/ul>\n<p>\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u524d\u63d0\u3067\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u304c\u884c\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u6574\u7406\u3059\u308b\u3068\u3001<\/p>\n<ol>\n<li>LogicalDeleteScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u306f include \u5143\u306b without_deleted \u3068\u3044\u3046\u540d\u524d\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<li>PublishStatusScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u306f LogicalDeleteScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u3092 include \u3057\u3066\u304a\u308a\u3001include \u5143\u306b draft \u53ca\u3073 published \u3068\u3044\u3046\u540d\u524d\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/li>\n<li><strong>draft \u53ca\u3073 published \u30b9\u30b3\u30fc\u30d7\u306f\u3001LogicalDeleteScopes \u304c\u5b9a\u7fa9\u3059\u308b without_deleted \u30b9\u30b3\u30fc\u30d7\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3002<\/strong><\/li>\n<li>Article \u30af\u30e9\u30b9\u306f PublishStatusScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u3092 include \u3057\u3066\u3044\u308b\u3002<\/li>\n<\/ol>\n<p>\u3068\u3044\u3046\u3053\u3068\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6ce8\u76ee\u3057\u3066\u3044\u305f\u3060\u304d\u305f\u3044\u306e\u306f\u3001PublishStatusScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u308b draft \u3068 published \u3068\u3044\u3046\u30b9\u30b3\u30fc\u30d7\u3067\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">      scope :draft, lambda{ without_deleted.where(status: 'draft') }\r\n      scope :published, lambda{ without_deleted.where(status: 'published') }<\/pre>\n<p>LogicalDeleteScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3088\u3063\u3066\u8ffd\u52a0\u3055\u308c\u308b without_deleted \u30b9\u30b3\u30fc\u30d7\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>After<\/h3>\n<p>\u3053\u308c\u3092 ActiveSupport::Concern \u3092\u4f7f\u3063\u3066\u66f8\u304d\u76f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module LogicalDeleteScopes\r\n  extend ActiveSupport::Concern\r\n  included do\r\n    scope :without_deleted, lambda{ where(deleted_at: nil) }\r\n  end \r\nend\r\n\r\nmodule PublishStatusScopes\r\n  extend ActiveSupport::Concern\r\n  include LogicalDeleteScopes\r\n  included do\r\n    scope :published, lambda{ without_deleted.where(status: 'published') }\r\n    scope :draft, lambda{ without_deleted.where(status: 'draft') }\r\n  end \r\nend \r\n\r\nclass Article &lt; ActiveRecord::Base\r\n  include PublishStatusScopes\r\nend<\/pre>\n<p>PublishStatusScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5b9f\u88c5\u306b\u6ce8\u76ee\u3057\u3066\u3044\u305f\u3060\u304d\u305f\u3044\u306e\u3067\u3059\u304c\u3001<strong>LogicalDeleteScopes \u306f PublishStatusScopes \u30e2\u30b8\u30e5\u30fc\u30eb\u306b include \u3057\u3066\u3044\u307e\u3059<\/strong>\u3002<\/p>\n<p>\u666e\u901a\u306b\u8003\u3048\u308b\u3068 PublishStatusScopes \u306b LogicalDeleteScopes \u3092 include \u3057\u3066\u3082\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3088\u3046\u306b\u601d\u3048\u307e\u3059\uff08LogicalDeleteScopes \u306f include \u5143\u3067\u3042\u308b PublishStatusScopes \u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067 without_deleted \u30b9\u30b3\u30fc\u30d7\u3092\u5b9a\u7fa9\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u304c\u3001PublishStatusScopes \u81ea\u4f53\u306f ActiveRecord::Base \u3092\u7d99\u627f\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u300cscope \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u306f\u5b58\u5728\u3057\u306a\u3044\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u306f\u3001\u3068\u601d\u3048\u307e\u3059\uff09\u3002<\/p>\n<p>\u3057\u304b\u3057\u3053\u308c\u3067\u554f\u984c\u7121\u304f\u52d5\u4f5c\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001ActiveSupport::Concern \u304c\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u4f9d\u5b58\u95a2\u4fc2\u3092\u4e0a\u624b\u304f\u6271\u3063\u3066\u304f\u308c\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>include \u5143\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3084 include \u5143\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u30d1\u30bf\u30fc\u30f3\u3001\u591a\u6bb5\u968e\u306b include \u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002\u8907\u96d1\u306b\u306a\u3063\u3066\u304f\u308b\u3068\u8003\u616e\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3053\u3068\u304c\u5897\u3048\u3066\u304d\u3066\u5927\u5909\u3067\u3059\u304c\u3001ActiveSupport::Concern \u306f\u5927\u304d\u306a\u52a9\u3051\u306b\u306a\u3063\u3066\u304f\u308c\u307e\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u524d\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u300cinclude\u3055\u308c\u305f\u6642\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u540c\u6642\u306b\u8ffd\u52a0\u3059\u308b\u983b\u51fa\u30d1\u30bf\u30fc\u30f3\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2013\/03\/22\/activesupportconcern-%e3%81%a7%e3%83%8f%e3%83%83%e3%83%94%e3%83%bc%e3%81%aa%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%83%a9%e3%82%a4%e3%83%95%e3%82%92%e9%80%81%e3%82%8b\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[68,22,24],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2251"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=2251"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2251\/revisions"}],"predecessor-version":[{"id":17943,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2251\/revisions\/17943"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=2251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=2251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=2251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}