Module: RailsPallet

Extended by:
RailsPallet
Included in:
RailsPallet
Defined in:
app/models/rails_pallet/upload.rb,
lib/rails_pallet.rb,
lib/rails_pallet/engine.rb,
lib/rails_pallet/version.rb,
lib/rails_pallet/active_record_extension.rb,
app/helpers/rails_pallet/application_helper.rb,
app/controllers/rails_pallet/uploads_controller.rb,
app/controllers/rails_pallet/application_controller.rb

Overview

Schema Information

Table name: rails_pallet_uploads

id                :integer          not null, primary key
created_at        :datetime         not null
updated_at        :datetime         not null
file_file_name    :string
file_content_type :string
file_file_size    :integer
file_updated_at   :datetime

Defined Under Namespace

Modules: ActiveRecordExtension, ApplicationHelper Classes: ApplicationController, Engine, InstallGenerator, Upload, UploadControllerGenerator, UploadSerializer, UploadsController

Constant Summary collapse

VERSION =
"2.3.2"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hash_saltObject



13
14
15
16
# File 'lib/rails_pallet.rb', line 13

def hash_salt
  return "default" unless @hash_salt
  @hash_salt
end

#use_prefixObject



18
19
20
# File 'lib/rails_pallet.rb', line 18

def use_prefix
  @use_prefix == true
end

Instance Method Details

#setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (RailsPallet)

    the object that the method was called on



22
23
24
25
# File 'lib/rails_pallet.rb', line 22

def setup
  yield self
  require "rails_pallet"
end