Sha256: b9df1aa574905d8253d59f414546fd9e2745c6df1695ec78bcf67ee5c29095cb

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

class BaseUser
  attr_accessor :name
  
  def initialize options = {}
    @name = options[:name] || 'no name'
  end

  def role_list_value
    instance_variable_get "@role_list"
  end  

  def role_value
    instance_variable_get "@#{self.class.troles_config.role_field}"
  end

  def troles_changed?
    false
  end

  def trole_changed?    
    false
  end
  
  def save!
    true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
troles-0.5.1 spec/generic/models/base_user.rb
troles-0.5.0 spec/generic/models/base_user.rb