Class: Kms::Model

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/kms/model.rb

Instance Method Summary collapse

Instance Method Details

#model_nameObject

Hacking hack



14
15
16
17
18
19
20
21
22
# File 'app/models/kms/model.rb', line 14

def model_name
  value = kms_model_name
  value.instance_eval do
    def human(options={})
      self
    end
  end
  value
end

#nameObject



9
10
11
# File 'app/models/kms/model.rb', line 9

def name
  id.to_s
end