Module: Uorm::CRUD::PersistanceHelper

Defined in:
lib/uorm/crud/persistance_helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/uorm/crud/persistance_helper.rb', line 4

def self.included base
  base.instance_eval do
    def persistance= value
      @persistance = value
    end

    def persistance
      @persistance
    end
  end
end

Instance Method Details

#persistanceObject



16
17
18
# File 'lib/uorm/crud/persistance_helper.rb', line 16

def persistance
  self.class.persistance
end