Class: EditableComponents::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- EditableComponents::Engine
- Defined in:
- lib/editable_components/engine.rb
Constant Summary collapse
- @@edit_mode =
false
Instance Attribute Summary collapse
-
#edit_mode ⇒ Object
Returns the value of attribute edit_mode.
Class Method Summary collapse
Instance Attribute Details
#edit_mode ⇒ Object
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
.css ⇒ Object
13 14 15 |
# File 'lib/editable_components/engine.rb', line 13 def self.css 'editable_components/application' if Engine.edit_mode end |
.js ⇒ Object
17 18 19 |
# File 'lib/editable_components/engine.rb', line 17 def self.js 'editable_components/application' if Engine.edit_mode end |