module ActsAsCommentableMore::Helpers::Post::MethodsHelper

Private Instance Methods

post_define_create_role(association_comment_name) click to toggle source
# File lib/acts_as_commentable_more/helpers/post/methods_helper.rb, line 8
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