Module: NfgUi::Bootstrap::Utilities::Remotable
- Included in:
- Components::Button, Components::NavLink
- Defined in:
- lib/nfg_ui/bootstrap/utilities/remotable.rb
Overview
Turns remote: true functionality on for components that need it.
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
8 9 10 |
# File 'lib/nfg_ui/bootstrap/utilities/remotable.rb', line 8 def data remote ? super.merge!(remote: remote.to_s) : super end |
#remote ⇒ Object
12 13 14 |
# File 'lib/nfg_ui/bootstrap/utilities/remotable.rb', line 12 def remote .fetch(:remote, nil) end |