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