Class: ActiveScaffold::Bridges::Paperclip

Inherits:
DataStructures::Bridge show all
Defined in:
lib/active_scaffold/bridges/paperclip.rb,
lib/active_scaffold/bridges/paperclip/paperclip_bridge.rb,
lib/active_scaffold/bridges/paperclip/paperclip_bridge_helpers.rb

Defined Under Namespace

Modules: PaperclipBridge, PaperclipBridgeHelpers

Class Method Summary (collapse)

Methods inherited from DataStructures::Bridge

install?, javascripts, run, stylesheets

Class Method Details

+ (Object) install



2
3
4
5
6
7
8
9
10
11
# File 'lib/active_scaffold/bridges/paperclip.rb', line 2

def self.install
  if ActiveScaffold::Config::Core.method_defined?(:initialize_with_paperclip)
    raise RuntimeError, "We've detected that you have active_scaffold_paperclip_bridge installed. This plugin has been moved to core. Please remove active_scaffold_paperclip_bridge to prevent any conflicts"
  end
  require File.join(File.dirname(__FILE__), "paperclip/form_ui")
  require File.join(File.dirname(__FILE__), "paperclip/list_ui")
  require File.join(File.dirname(__FILE__), "paperclip/paperclip_bridge_helpers")
  require File.join(File.dirname(__FILE__), "paperclip/paperclip_bridge")
  ActiveScaffold::Config::Core.send :include, ActiveScaffold::Bridges::Paperclip::PaperclipBridge
end