Sha256: df354416def97ff806cc87eef57656e392e0d7ea09a00e51c258c152f6952a3d

Contents?: true

Size: 378 Bytes

Versions: 32

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

# Script Model
class Script < ApplicationRecord
  include ActivityHistory
  include CloneRecord
  include Uploadable
  include Downloadable
  include Sortable
  acts_as_list

  validates_presence_of :name, :script, :url

  def self.get_script(request)
    find_by_url(request.url)
  end

  def self.search_field
    :name_or_script_cont
  end
end

Version data entries

32 entries across 31 versions & 1 rubygems

Version Path
keppler-2.1.3 installer/core/app/models/script.rb
keppler-2.1.2 installer/core/app/models/script.rb
keppler-2.1.1 installer/core/app/models/script.rb
keppler-2.1.pre.p1 installer/core/app/models/script.rb
keppler-2.1 installer/core/app/models/script.rb
keppler-2.0.7 installer/core/app/models/script.rb
keppler-2.0.6 installer/core/app/models/script.rb
keppler-2.0.5 installer/core/app/models/script.rb
keppler-2.0.4.p1 installer/core/app/models/script.rb
keppler-2.0.4.pre.p1 installer/core/app/models/script.rb
keppler-2.0.4 installer/core/app/models/script.rb
keppler-2.0.3 installer/core/app/models/script.rb