Sha256: 84e47c706e90ff3f5012102225e20bc0c77888faa55f01c647dac150462830ee
Contents?: true
Size: 446 Bytes
Versions: 16
Compression:
Stored size: 446 Bytes
Contents
require 'sunrise/config/base' module Sunrise module Config class Association < Base def resource_name @resource_name ||= (@config_options[:class_name] || name) end def model @model ||= Utils.lookup(resource_name.to_s.camelize) end # Compare relation by model_type def is_this?(model_type) name.to_s.downcase == model_type.to_s.downcase end end end end
Version data entries
16 entries across 16 versions & 1 rubygems