Module: Mokio::Concerns::Models::ExternalScript
- Extended by:
- ActiveSupport::Concern
- Included in:
- ExternalScript
- Defined in:
- lib/mokio/concerns/models/external_script.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #code_view ⇒ Object
-
#deletable ⇒ Object
:nodoc:.
-
#editable ⇒ Object
:nodoc:.
- #name_view ⇒ Object
Instance Method Details
#code_view ⇒ Object
36 37 38 |
# File 'lib/mokio/concerns/models/external_script.rb', line 36 def code_view self.script.truncate(200) end |
#deletable ⇒ Object
:nodoc:
44 45 46 |
# File 'lib/mokio/concerns/models/external_script.rb', line 44 def deletable #:nodoc: true end |
#editable ⇒ Object
:nodoc:
40 41 42 |
# File 'lib/mokio/concerns/models/external_script.rb', line 40 def editable #:nodoc: true end |
#name_view ⇒ Object
32 33 34 |
# File 'lib/mokio/concerns/models/external_script.rb', line 32 def name_view (ActionController::Base.helpers.link_to self[:name], ApplicationController.helpers.edit_url(self.class.base_class, self)).html_safe end |