Sha256: 8109311fd0a59bda084887c66c6f69863f2aadc4dd41a8b93543ed621dc6e42f

Contents?: true

Size: 360 Bytes

Versions: 47

Compression:

Stored size: 360 Bytes

Contents

module BulkPostsWithFormObjectsForm
  
  class Base

    include ObjectAttorney

    has_many :posts, class_name: PostForm::Base

  end
  
  class Explicit

    include ObjectAttorney

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

    def existing_posts
      PostForm::Base.all
    end

  end

end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
object_attorney-2.10.12 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.11 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.10 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.9 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.7 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.6 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.5 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.3 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.2 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.10.1 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.9.4 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.9.3 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.9.2 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.9.0 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.8.1 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.8.0 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.6.12 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.6.11 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.6.10 spec/support/form_objects/bulk_posts_with_form_objects_form.rb
object_attorney-2.6.9 spec/support/form_objects/bulk_posts_with_form_objects_form.rb