Sha256: f98aec36f485f553ff511963a0b492d4dbe0de54d1a353829c66e187ffd901b9

Contents?: true

Size: 479 Bytes

Versions: 29

Compression:

Stored size: 479 Bytes

Contents

module ActiveScaffold::DataStructures
  class Bridge
    def self.install
      raise RunTimeError, "install not defined for bridge #{name}"
    end

    def self.prepare
    end

    # by convention and default, use the bridge name as the required constant for installation
    def self.install?
      Object.const_defined? name.demodulize
    end

    def self.run
      install if install?
    end

    def self.stylesheets
    end

    def self.javascripts
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
active_scaffold-3.4.43 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.42 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.41.1 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.41 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.40 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.39 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.38 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.37 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.36 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.35 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.34 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.33 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.32 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.31 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.30 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.29 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.28 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.27 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.26 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.4.25 lib/active_scaffold/data_structures/bridge.rb