Sha256: cc092203d29fbff0e9d679f5938f67aeb653a6dd7b143ae36300af8e0a4c73b1

Contents?: true

Size: 297 Bytes

Versions: 47

Compression:

Stored size: 297 Bytes

Contents

module BulkPostsForm

  class Base

    include ObjectAttorney

    has_many :posts

  end

  class Explicit

    include ObjectAttorney

    has_many :posts
    
    def build_post(attributes = {})
      ::Post.new(attributes)
    end

    def existing_posts
      ::Post.all
    end

  end

end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
object_attorney-2.6.1 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.6.0 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.9 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.7 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.6 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.5 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.4 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.3 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.2 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.5.0 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.4.0 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.13 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.12 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.11 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.10 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.9 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.8 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.7 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.6 spec/support/form_objects/bulk_posts_form.rb
object_attorney-2.2.5 spec/support/form_objects/bulk_posts_form.rb