Class: ActiveScaffold::Bridges::CalendarDateSelect

Inherits:
DataStructures::Bridge show all
Defined in:
lib/active_scaffold/bridges/calendar_date_select.rb,
lib/active_scaffold/bridges/calendar_date_select/as_cds_bridge.rb

Defined Under Namespace

Modules: FormColumnHelpers, SearchColumnHelpers

Class Method Summary (collapse)

Methods inherited from DataStructures::Bridge

run

Class Method Details

+ (Object) install



2
3
4
5
6
7
8
9
10
11
# File 'lib/active_scaffold/bridges/calendar_date_select.rb', line 2

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

+ (Boolean) install?



13
14
15
# File 'lib/active_scaffold/bridges/calendar_date_select.rb', line 13

def self.install?
  super && ActiveScaffold.js_framework == :prototype
end

+ (Object) javascripts



21
22
23
# File 'lib/active_scaffold/bridges/calendar_date_select.rb', line 21

def self.javascripts
  calendar_date_select_javascripts
end

+ (Object) stylesheets



17
18
19
# File 'lib/active_scaffold/bridges/calendar_date_select.rb', line 17

def self.stylesheets
  calendar_date_select_stylesheets
end