Class: ActiveScaffold::DataStructures::Bridge

Inherits:
Object
  • Object
show all
Defined in:
lib/active_scaffold/data_structures/bridge.rb

Direct Known Subclasses

Bridges::Ancestry, Bridges::Bitfields, Bridges::CalendarDateSelect, Bridges::Cancan, Bridges::Carrierwave, Bridges::Chosen, Bridges::CountryHelper, Bridges::DatePicker, Bridges::Dragonfly, Bridges::FileColumn, Bridges::Paperclip, Bridges::RecordSelect, Bridges::SemanticAttributes, Bridges::TinyMce

Class Method Summary (collapse)

Class Method Details

+ (Object) install

Raises:

  • (RunTimeError)


3
4
5
# File 'lib/active_scaffold/data_structures/bridge.rb', line 3

def self.install
  raise(RunTimeError, "install not defined for bridge #{name}")
end

+ (Boolean) install?

by convention and default, use the bridge name as the required constant for installation



8
9
10
# File 'lib/active_scaffold/data_structures/bridge.rb', line 8

def self.install?
  Object.const_defined? name.demodulize
end

+ (Object) javascripts



19
20
# File 'lib/active_scaffold/data_structures/bridge.rb', line 19

def self.javascripts
end

+ (Object) run



12
13
14
# File 'lib/active_scaffold/data_structures/bridge.rb', line 12

def self.run
  install if install?
end

+ (Object) stylesheets



16
17
# File 'lib/active_scaffold/data_structures/bridge.rb', line 16

def self.stylesheets
end