Sha256: a345b10fb87f965e8062124157fa75e77781bf80e7b5c8b2cfc4f8b8ee36965b

Contents?: true

Size: 910 Bytes

Versions: 29

Compression:

Stored size: 910 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.method_defined?(:initialize_with_calendar_date_select)
      raise "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

29 entries across 29 versions & 1 rubygems

Version Path
active_scaffold-3.4.43 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.42 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.41.1 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.41 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.40 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.39 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.38 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.37 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.36 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.35 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.34 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.33 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.32 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.31 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.30 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.29 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.28 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.27 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.26 lib/active_scaffold/bridges/calendar_date_select.rb
active_scaffold-3.4.25 lib/active_scaffold/bridges/calendar_date_select.rb