Module: Ekylibre::Record::Acts::Protected

Defined in:
lib/ekylibre/record/acts/protected.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/ekylibre/record/acts/protected.rb', line 14

def self.included(base)
  base.extend(ClassMethods)

  def createable?
    true
  end

  def updateable?
    true
  end

  def destroyable?
    true
  end
end

Instance Method Details

#createable?Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/ekylibre/record/acts/protected.rb', line 17

def createable?
  true
end

#destroyable?Boolean

Returns:

  • (Boolean)

25
26
27
# File 'lib/ekylibre/record/acts/protected.rb', line 25

def destroyable?
  true
end

#updateable?Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/ekylibre/record/acts/protected.rb', line 21

def updateable?
  true
end