Module: RedisField::ActiveRecord
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/redis_field/active_record.rb,
lib/redis_field/active_record/class_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#get_redis_fields ⇒ Object
15 16 17 18 19 |
# File 'lib/redis_field/active_record.rb', line 15 def get_redis_fields redis_fields.each do |field_name| send "#{field_name}=", Base.new(self, field_name).get end end |
#redis_fields ⇒ Object
11 12 13 |
# File 'lib/redis_field/active_record.rb', line 11 def redis_fields self.class.redis_fields end |