Sha256: 206b6041183960a91a25d5ba37f5d719ef25e1d764f220f62f345204874078b8
Contents?: true
Size: 392 Bytes
Versions: 4
Compression:
Stored size: 392 Bytes
Contents
module ActsAsCommentableMore module Helpers module Post module MethodsHelper private def define_create_role_comments(association_comment_name) redefine_method("creates_#{association_comment_name.to_s.pluralize}") do |attributes = nil| send(association_comment_name).create(attributes) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems