Sha256: 0be8def2ead5708e3b111e7914c55ca9b6daad6d5cb6c7cd66f06732533e3531

Contents?: true

Size: 531 Bytes

Versions: 39

Compression:

Stored size: 531 Bytes

Contents

module Arrest

  class HasManyAttribute < Attribute
    attr_reader :method_name, :clazz_name, :url_part, :foreign_key
    def initialize(ids_field_name,
                   method_name,
                   clazz_name,
                   url_part,
                   foreign_key,
                   read_only = false)
      super(ids_field_name, read_only, Array)
      @method_name = method_name.to_sym
      @clazz_name = clazz_name.to_sym
      @url_part = url_part.to_sym
      @foreign_key = foreign_key.to_sym
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
arrest-0.0.67 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.66 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.65 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.64 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.63 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.62 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.61 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.60 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.59 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.58 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.57 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.56 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.54 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.53 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.52 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.51 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.50 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.49 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.48 lib/arrest/attributes/has_many_attribute.rb
arrest-0.0.47 lib/arrest/attributes/has_many_attribute.rb