Sha256: 254e27ca2da57197e6d97b915ea3345d3e5698cf319787b19c9fdd63bd460c88

Contents?: true

Size: 374 Bytes

Versions: 13

Compression:

Stored size: 374 Bytes

Contents

module NinjaModel
  module Associations
    module Builder
      class HasOne < SingularAssociation
        self.macro = :has_one

        def constructable?
          true
        end

        private

        def validate_options
          valid_options = self.class.valid_options
          options.assert_valid_keys(valid_options)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ninja-model-1.0.5 lib/ninja_model/associations/builder/has_one.rb
ninja-model-1.0.4 lib/ninja_model/associations/builder/has_one.rb
ninja-model-1.0.3 lib/ninja_model/associations/builder/has_one.rb
ninja-model-1.0.2 lib/ninja_model/associations/builder/has_one.rb
ninja-model-1.0.1 lib/ninja_model/associations/builder/has_one.rb
ninja-model-1.0.0 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.6 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.5 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.4 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.3 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.2 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.1 lib/ninja_model/associations/builder/has_one.rb
ninja-model-0.9.0 lib/ninja_model/associations/builder/has_one.rb