Module: EffectiveStorage

Includes:
EffectiveGem
Defined in:
lib/effective_storage.rb,
lib/effective_storage/engine.rb,
lib/effective_storage/version.rb,
lib/generators/effective_storage/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Engine

Constant Summary collapse

VERSION =
'0.4.6'.freeze

Class Method Summary collapse

Class Method Details

.authorize_active_storage?Boolean

Returns:

  • (Boolean)


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

def self.authorize_active_storage?
  authorize_active_storage == true
end

.config_keysObject



8
9
10
# File 'lib/effective_storage.rb', line 8

def self.config_keys
  [:layout, :authorize_active_storage, :never_delete, :skip_notification]
end

.never_delete?Boolean

Returns:

  • (Boolean)


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

def self.never_delete?
  never_delete == true
end

.skip_notification?Boolean

Returns:

  • (Boolean)


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

def self.skip_notification?
  skip_notification == true
end

.skip_notificationsObject



26
27
28
# File 'lib/effective_storage.rb', line 26

def self.skip_notifications
  Array(skip_notification)
end