Class: EditableComponents::Engine

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

Constant Summary collapse

@@edit_mode =
false

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#edit_modeObject

Returns the value of attribute edit_mode.



7
8
9
# File 'lib/editable_components/engine.rb', line 7

def edit_mode
  @edit_mode
end

Class Method Details

.cssObject



13
14
15
# File 'lib/editable_components/engine.rb', line 13

def self.css
  'editable_components/application' if Engine.edit_mode
end

.jsObject



17
18
19
# File 'lib/editable_components/engine.rb', line 17

def self.js
  'editable_components/application' if Engine.edit_mode
end