Sha256: b6b6d9ec114ac2956fe87340c4a9671b9e037c92b5641204e0c38ae7bc5434a6

Contents?: true

Size: 369 Bytes

Versions: 18

Compression:

Stored size: 369 Bytes

Contents

class ContextIO
  class API
    module AssociationHelpers
      def self.class_for_association_name(association_name)
        associations[association_name]
      end

      def self.register_resource(klass, association_name)
        associations[association_name] = klass
      end

      def self.associations
        @associations ||= {}
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contextio-2.0.0 lib/contextio/api/association_helpers.rb
contextio-1.8.1 lib/contextio/api/association_helpers.rb
contextio-1.8.0 lib/contextio/api/association_helpers.rb
contextio-1.7.2 lib/contextio/api/association_helpers.rb
contextio-1.7.1 lib/contextio/api/association_helpers.rb
contextio-1.7.0 lib/contextio/api/association_helpers.rb
contextio-1.6.0 lib/contextio/api/association_helpers.rb
contextio-1.5.0 lib/contextio/api/association_helpers.rb
contextio-1.4.0 lib/contextio/api/association_helpers.rb
contextio-1.3.0 lib/contextio/api/association_helpers.rb
contextio-1.2.4 lib/contextio/api/association_helpers.rb
contextio-1.2.3 lib/contextio/api/association_helpers.rb
contextio-1.2.2 lib/contextio/api/association_helpers.rb
contextio-1.2.1 lib/contextio/api/association_helpers.rb
contextio-1.2.0 lib/contextio/api/association_helpers.rb
contextio-1.1.0 lib/contextio/api/association_helpers.rb
contextio-1.0.1 lib/contextio/api/association_helpers.rb
contextio-1.0.0 lib/contextio/api/association_helpers.rb