Sha256: 56f624f28d10064d2321f6841799b44fa4e20c1364498fd6d0e8e856caeb070b

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

require "hydra_editor/engine"
require "bootstrap_form"

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

6 entries across 6 versions & 1 rubygems

Version Path
hydra-editor-0.5.2 lib/hydra-editor.rb
hydra-editor-1.0.0.beta1 lib/hydra-editor.rb
hydra-editor-0.5.1 lib/hydra-editor.rb
hydra-editor-0.5.0 lib/hydra-editor.rb
hydra-editor-0.4.0 lib/hydra-editor.rb
hydra-editor-0.3.0 lib/hydra-editor.rb