Sha256: a62d863cfa6a7ffe434ba251bdba9d033ac61f2194a96ae63598c7bd3ccf754c

Contents?: true

Size: 758 Bytes

Versions: 6

Compression:

Stored size: 758 Bytes

Contents

ActiveScaffold::Bridges.bridge "CalendarDateSelect" do
  install do
    # 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")
      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__), "lib/as_cds_bridge.rb")
  end

  install? do
    Object.const_defined?(name) && ActiveScaffold.js_framework == :prototype
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_scaffold-3.0.12 lib/active_scaffold/bridges/calendar_date_select/bridge.rb
active_scaffold-3.0.11 lib/active_scaffold/bridges/calendar_date_select/bridge.rb
active_scaffold-3.0.5 lib/active_scaffold/bridges/calendar_date_select/bridge.rb
active_scaffold-3.0.4 lib/active_scaffold/bridges/calendar_date_select/bridge.rb
active_scaffold-3.0.2 lib/active_scaffold/bridges/calendar_date_select/bridge.rb
active_scaffold-3.0.1 lib/active_scaffold/bridges/calendar_date_select/bridge.rb