Sha256: 5045bb8bf772f4b60e05379bbeffab2ee7d8bbaacdb82e47273a0450987856a8

Contents?: true

Size: 470 Bytes

Versions: 36

Compression:

Stored size: 470 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

36 entries across 36 versions & 1 rubygems

Version Path
active_scaffold-3.7.8 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.7.7 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.7.6 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.7.5 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.7.2 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.7.1 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.7.0 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.20 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.19 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.17 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.15 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.14 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.13 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.12 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.11.1 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.11 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.10 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.9 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.8 lib/active_scaffold/data_structures/bridge.rb
active_scaffold-3.6.6 lib/active_scaffold/data_structures/bridge.rb