Method: Anoubis::Etc::Data#data

Defined in:
app/controllers/anoubis/etc/data.rb

#dataActiveRecord?

Note:

Data is placed in this attribute when loaded from the model by actions ‘index’, ‘edit’, ‘update’, ‘create’ etc.

Returns current loaded data from the defined model or nil if data not loaded.

Returns:

  • (ActiveRecord, nil)

    current loaded data from the defined model or nil if data not loaded.



9
# File 'app/controllers/anoubis/etc/data.rb', line 9

class_attribute :data