module Bootstrap::DateTimePicker
Constants
- VERSION
Public Class Methods
asset_pipeline?()
click to toggle source
Environment detection helpers
# File lib/bootstrap/datetimepicker.rb, line 28 def asset_pipeline? defined?(::Sprockets) end
assets_path()
click to toggle source
# File lib/bootstrap/datetimepicker.rb, line 15 def assets_path @assets_path ||= File.join gem_path, 'vendor', 'assets' end
gem_path()
click to toggle source
Paths
# File lib/bootstrap/datetimepicker.rb, line 11 def gem_path @gem_path ||= File.expand_path '..', File.dirname(__FILE__) end
javascripts_path()
click to toggle source
# File lib/bootstrap/datetimepicker.rb, line 23 def javascripts_path File.join assets_path, 'javascripts' end
load!()
click to toggle source
# File lib/bootstrap/datetimepicker.rb, line 6 def load! register_rails_engine if rails? end
rails?()
click to toggle source
# File lib/bootstrap/datetimepicker.rb, line 32 def rails? defined?(::Rails) end
stylesheets_path()
click to toggle source
# File lib/bootstrap/datetimepicker.rb, line 19 def stylesheets_path File.join assets_path, 'stylesheets' end
Private Class Methods
register_rails_engine()
click to toggle source
# File lib/bootstrap/datetimepicker.rb, line 37 def register_rails_engine require 'bootstrap/datetimepicker/rails/engine' if ::Rails.version >= '3.1' end