Class: Lanes::Screen::Definition
- Inherits:
-
Object
- Object
- Lanes::Screen::Definition
- Includes:
- Concerns::AttrAccessorWithDefault
- Defined in:
- lib/lanes/screen.rb
Instance Method Summary collapse
Instance Method Details
#assets ⇒ Object
80 81 82 83 84 85 |
# File 'lib/lanes/screen.rb', line 80 def assets paths=[] paths << "#{Lanes.config.assets_path_prefix}/#{js}" unless js.blank? paths << "#{Lanes.config.assets_path_prefix}/#{css}" unless css.blank? paths end |
#to_json ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/lanes/screen.rb', line 87 def to_json Oj.dump({ id: identifier, title: title, icon: icon, model: model_class, view: view_class, js: js, css: css, assets: assets, group_id: group_id, description: description }, mode: :compat) end |