Sha256: 633c58cf3afc0e24a372b91256a8387415d79f4021da876849b21af91d6480b3

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 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.to_s.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

Version Path
acts_as_commentable_more-1.2.8 lib/acts_as_commentable_more/helpers/post/methods_helper.rb
acts_as_commentable_more-1.2.7 lib/acts_as_commentable_more/helpers/post/methods_helper.rb
acts_as_commentable_more-1.2.6 lib/acts_as_commentable_more/helpers/post/methods_helper.rb