Class: ActiveScaffold::Bridges::Carrierwave

Inherits:
DataStructures::Bridge show all
Defined in:
lib/active_scaffold/bridges/carrierwave.rb,
lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb,
lib/active_scaffold/bridges/carrierwave/carrierwave_bridge_helpers.rb

Defined Under Namespace

Modules: CarrierwaveBridge, CarrierwaveBridgeHelpers

Class Method Summary collapse

Methods inherited from DataStructures::Bridge

javascripts, prepare, run, stylesheets

Class Method Details

.installObject



2
3
4
5
6
7
8
# File 'lib/active_scaffold/bridges/carrierwave.rb', line 2

def self.install
  require File.join(File.dirname(__FILE__), 'carrierwave/form_ui')
  require File.join(File.dirname(__FILE__), 'carrierwave/list_ui')
  require File.join(File.dirname(__FILE__), 'carrierwave/carrierwave_bridge_helpers')
  require File.join(File.dirname(__FILE__), 'carrierwave/carrierwave_bridge')
  ActiveScaffold::Config::Core.send :prepend, ActiveScaffold::Bridges::Carrierwave::CarrierwaveBridge
end

.install?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_scaffold/bridges/carrierwave.rb', line 10

def self.install?
  Object.const_defined? 'CarrierWave'
end