Method: ItemsController#edit
- Defined in:
- app/controllers/items_controller.rb
#edit ⇒ Object
GET /items/1/edit
184 185 186 187 188 189 190 191 192 193 |
# File 'app/controllers/items_controller.rb', line 184 def edit @item.library_id = @item.shelf.library_id @manifestation = @item.manifestation if defined?(EnjuCirculation) unless @item.use_restriction @item.build_item_has_use_restriction @item.item_has_use_restriction.use_restriction = UseRestriction.where(name: 'Not For Loan').first end end end |