Sha256: a9b0acf4a262f840b066f1181bcdf37473179c97410816c8966f817667a718c2

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

module ActsAsCommentableMore
  module Helpers
    module Post
      module MethodsHelper

        private

        def define_create_role_comments(association_name)
          redefine_method("creates_#{association_name.to_s.pluralize}") do |attributes = nil|
            send(association_name).create(attributes)
          end
        end


      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_commentable_more-1.2.1 lib/acts_as_commentable_more/helpers/post/methods_helper.rb
acts_as_commentable_more-1.2.0 lib/acts_as_commentable_more/helpers/post/methods_helper.rb