Class: ActiveScaffold::DataStructures::Bridge
- Inherits:
-
Object
- Object
- ActiveScaffold::DataStructures::Bridge
show all
- Defined in:
- lib/active_scaffold/data_structures/bridge.rb
Direct Known Subclasses
Bridges::ActiveStorage, Bridges::Ancestry, Bridges::Bitfields, Bridges::CalendarDateSelect, Bridges::Cancan, Bridges::Carrierwave, Bridges::Chosen, Bridges::CountrySelect, Bridges::DatePicker, Bridges::Dragonfly, Bridges::FileColumn, Bridges::PaperTrail, Bridges::Paperclip, Bridges::RecordSelect, Bridges::SemanticAttributes, Bridges::TinyMce, Bridges::UsaStateSelect
Class Method Summary
collapse
Class Method Details
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
|
.install? ⇒ Boolean
by convention and default, use the bridge name as the required constant for installation
10
11
12
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 10
def self.install?
Object.const_defined? name.demodulize
end
|
.javascripts ⇒ Object
20
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 20
def self.javascripts; end
|
7
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 7
def self.prepare; end
|
14
15
16
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 14
def self.run
install if install?
end
|
.stylesheets ⇒ Object
18
|
# File 'lib/active_scaffold/data_structures/bridge.rb', line 18
def self.stylesheets; end
|