Sha256: 6ba3856cb1ec2ecf9ab6577e5a3d35ccfa137d77c75a82ca3c6b6960341ba696
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 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(created_at: :desc) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_commentable_more-1.2.9 | lib/acts_as_commentable_more/helpers/post/scopes_helper.rb |