Module: ActiveScaffold::Bridges::CalendarDateSelectBridge::ViewHelpers
- Defined in:
- lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#active_scaffold_javascripts_with_calendar_date_select(frontend = :default) ⇒ Object
Provides stylesheets to include with
stylesheet_link_tag
. -
#active_scaffold_stylesheets_with_calendar_date_select(frontend = :default) ⇒ Object
Provides stylesheets to include with
stylesheet_link_tag
.
Class Method Details
.included(base) ⇒ Object
52 53 54 55 |
# File 'lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb', line 52 def self.included(base) base.alias_method_chain :active_scaffold_stylesheets, :calendar_date_select base.alias_method_chain :active_scaffold_javascripts, :calendar_date_select end |
Instance Method Details
#active_scaffold_javascripts_with_calendar_date_select(frontend = :default) ⇒ Object
Provides stylesheets to include with stylesheet_link_tag
62 63 64 |
# File 'lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb', line 62 def active_scaffold_javascripts_with_calendar_date_select(frontend = :default) active_scaffold_javascripts_without_calendar_date_select + [calendar_date_select_javascripts] end |
#active_scaffold_stylesheets_with_calendar_date_select(frontend = :default) ⇒ Object
Provides stylesheets to include with stylesheet_link_tag
57 58 59 |
# File 'lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb', line 57 def active_scaffold_stylesheets_with_calendar_date_select(frontend = :default) active_scaffold_stylesheets_without_calendar_date_select + [calendar_date_select_stylesheets] end |