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

Version Path
acts_as_commentable_more-1.2.11 lib/acts_as_commentable_more/helpers/post/methods_helper.rb
acts_as_commentable_more-1.2.10 lib/acts_as_commentable_more/helpers/post/methods_helper.rb
acts_as_commentable_more-1.2.9 lib/acts_as_commentable_more/helpers/post/methods_helper.rb