Class: TinyAdmin::Plugins::BaseRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/tiny_admin/plugins/base_repository.rb

Direct Known Subclasses

ActiveRecordRepository

Constant Summary collapse

RecordNotFound =
Class.new(StandardError)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject (readonly)

Returns the value of attribute model.



8
9
10
# File 'lib/tiny_admin/plugins/base_repository.rb', line 8

def model
  @model
end