Sha256: a3df78ce4d8825e23df55767eff5fd1dea82638c5de79088c4cc9ce6eab1a214

Contents?: true

Size: 990 Bytes

Versions: 2

Compression:

Stored size: 990 Bytes

Contents

class ActiveScaffold::Bridges::CalendarDateSelect < ActiveScaffold::DataStructures::Bridge
  def self.install
    # check to see if the old bridge was installed.  If so, warn them
    # we can detect this by checking to see if the bridge was installed before calling this code
       
    if ActiveScaffold::Config::Core.instance_methods.include?("initialize_with_calendar_date_select".send(::ActiveScaffold::METHOD_CONVERSION))
      raise RuntimeError, "We've detected that you have active_scaffold_calendar_date_select_bridge installed.  This plugin has been moved to core.  Please remove active_scaffold_calendar_date_select_bridge to prevent any conflicts"
    end
    
    require File.join(File.dirname(__FILE__), "calendar_date_select/as_cds_bridge.rb")
  end
  
  def self.install?
    super && ActiveScaffold.js_framework == :prototype
  end

  def self.stylesheets
    calendar_date_select_stylesheets
  end

  def self.javascripts
    calendar_date_select_javascripts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_scaffold-3.3.0 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.2.20 lib/active_scaffold/bridges/calendar_date_select.rb