Sha256: 7db587c8dca87def568234b119199595515825279236015e977df63cf42dbd40
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
module ActsAsCommentableMore module Helpers module Post module ScopesHelper def post_define_all_scope redefine_method("all_#{aacm_commentable_options[:association_comment_name]}") do aacm_commentable_options[:comment_model] .includes(aacm_association_options[:as].to_sym, :user) .where(aacm_association_options[:as].to_sym => self) .order(aacm_association_options[:order_by]) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_commentable_more-1.2.10 | lib/acts_as_commentable_more/helpers/post/scopes_helper.rb |