Sha256: 1b6c2ba31f290083922d989eded8c7ee2c52b356a52c900cd1e583a7fb0b70a0
Contents?: true
Size: 937 Bytes
Versions: 20
Compression:
Stored size: 937 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 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
20 entries across 20 versions & 1 rubygems