Class: TinyAdmin::Plugins::BaseRepository
- Inherits:
-
Object
- Object
- TinyAdmin::Plugins::BaseRepository
- Defined in:
- lib/tiny_admin/plugins/base_repository.rb
Direct Known Subclasses
Constant Summary collapse
- RecordNotFound =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model) ⇒ BaseRepository
constructor
A new instance of BaseRepository.
Constructor Details
#initialize(model) ⇒ BaseRepository
Returns a new instance of BaseRepository.
10 11 12 |
# File 'lib/tiny_admin/plugins/base_repository.rb', line 10 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
8 9 10 |
# File 'lib/tiny_admin/plugins/base_repository.rb', line 8 def model @model end |