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, run, stylesheets

Class Method Details

+ (Object) install



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 :include, ActiveScaffold::Bridges::Carrierwave::CarrierwaveBridge
end

+ (Boolean) install?

Returns:

  • (Boolean)


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

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