Sha256: 8dcc3274ad024b519aa137156b208a07612c54aa74fc3ff630946f5a39cd3fd8

Contents?: true

Size: 315 Bytes

Versions: 24

Compression:

Stored size: 315 Bytes

Contents

require 'hydra_editor/engine'

module HydraEditor
  class InvalidType < RuntimeError; end

  extend ActiveSupport::Autoload

  autoload :ControllerResource

  def self.models=(val)
    @models = val
  end

  def self.models
    @models ||= []
  end

  def self.valid_model?(type)
    models.include? type
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hydra-editor-7.0.0 lib/hydra-editor.rb
hydra-editor-6.3.0 lib/hydra-editor.rb
hydra-editor-6.2.0 lib/hydra-editor.rb
hydra-editor-6.1.0 lib/hydra-editor.rb
hydra-editor-6.0.0 lib/hydra-editor.rb
hydra-editor-5.0.5 lib/hydra-editor.rb
hydra-editor-5.0.4 lib/hydra-editor.rb
hydra-editor-5.0.3 lib/hydra-editor.rb
hydra-editor-5.0.2 lib/hydra-editor.rb
hydra-editor-5.0.1 lib/hydra-editor.rb
hydra-editor-5.0.0 lib/hydra-editor.rb
hydra-editor-4.0.2 lib/hydra-editor.rb
hydra-editor-4.0.1 lib/hydra-editor.rb
hydra-editor-3.4.0 lib/hydra-editor.rb
hydra-editor-3.4.0.beta lib/hydra-editor.rb
hydra-editor-3.3.2 lib/hydra-editor.rb
hydra-editor-3.3.1 lib/hydra-editor.rb
hydra-editor-3.2.1 lib/hydra-editor.rb
hydra-editor-3.2.0 lib/hydra-editor.rb
hydra-editor-3.1.2 lib/hydra-editor.rb