Class: Administrate::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/administrate/engine.rb

Constant Summary collapse

@@javascripts =
[]
@@stylesheets =
[]

Class Method Summary collapse

Class Method Details

.add_javascript(script) ⇒ Object



25
26
27
# File 'lib/administrate/engine.rb', line 25

def self.add_javascript(script)
  @@javascripts << script
end

.add_stylesheet(stylesheet) ⇒ Object



29
30
31
# File 'lib/administrate/engine.rb', line 29

def self.add_stylesheet(stylesheet)
  @@stylesheets << stylesheet
end

.javascriptsObject



37
38
39
# File 'lib/administrate/engine.rb', line 37

def self.javascripts
  @@javascripts
end

.stylesheetsObject



33
34
35
# File 'lib/administrate/engine.rb', line 33

def self.stylesheets
  @@stylesheets
end