Module: Fullcalendar
- Defined in:
- lib/fullcalendar.rb,
lib/fullcalendar/engine.rb,
lib/fullcalendar/version.rb,
lib/generators/fullcalendar/install_generator.rb
Defined Under Namespace
Modules: Generators
Classes: Engine
Constant Summary
collapse
- VERSION =
"3.9.0"
Class Method Summary
collapse
Class Method Details
.assets_path ⇒ Object
32
33
34
|
# File 'lib/fullcalendar.rb', line 32
def assets_path
@assets_path ||= File.join gem_path, 'vendor/assets'
end
|
.gem_path ⇒ Object
20
21
22
|
# File 'lib/fullcalendar.rb', line 20
def gem_path
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
end
|
.hanami? ⇒ Boolean
45
46
47
|
# File 'lib/fullcalendar.rb', line 45
def hanami?
defined?(::Hanami)
end
|
.javascripts_path ⇒ Object
28
29
30
|
# File 'lib/fullcalendar.rb', line 28
def javascripts_path
File.join assets_path, 'javascripts'
end
|
.load! ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/fullcalendar.rb', line 7
def load!
if rails?
register_rails_engine
elsif hanami?
register_hanami
elsif sprockets?
register_sprockets
end
configure_sass
end
|
.rails? ⇒ Boolean
41
42
43
|
# File 'lib/fullcalendar.rb', line 41
def rails?
defined?(::Rails)
end
|
.sprockets? ⇒ Boolean
Environment detection helpers
37
38
39
|
# File 'lib/fullcalendar.rb', line 37
def sprockets?
defined?(::Sprockets)
end
|
.stylesheets_path ⇒ Object
24
25
26
|
# File 'lib/fullcalendar.rb', line 24
def stylesheets_path
File.join assets_path, 'stylesheets'
end
|