Sha256: 585068b0622d3340818a235a0bbda086751f880439a84c648e046ef2a1255830

Contents?: true

Size: 714 Bytes

Versions: 2

Compression:

Stored size: 714 Bytes

Contents

require File.join(File.dirname(__FILE__), "lib/paperclip_bridge_helpers")
ActiveScaffold.bridge "Paperclip" do
  install do
    if ActiveScaffold::Config::Core.instance_methods.include?("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__), "lib/paperclip_bridge")
    require File.join(File.dirname(__FILE__), "lib/form_ui")
    require File.join(File.dirname(__FILE__), "lib/list_ui")
    ActiveScaffold::Config::Core.send :include, ActiveScaffold::PaperclipBridge
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 vendor/plugins/active_scaffold/lib/bridges/paperclip/bridge.rb
brisk-bills-0.8.1 vendor/plugins/active_scaffold/lib/bridges/paperclip/bridge.rb