From 5d2794ed4298d7507515464a7e454d521b2ee081 Mon Sep 17 00:00:00 2001 From: joegatt Date: Sun, 2 Jun 2013 18:51:29 +0200 Subject: [PATCH] Adds editor, introducer and translator to accessible attributes. This is mostly to allow books to be edited through RailsAdmin. This would be better handled using roles, allowing access only to admin and daemon roles. --- app/models/source.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/source.rb b/app/models/source.rb index 2516e5fe..40358c50 100644 --- a/app/models/source.rb +++ b/app/models/source.rb @@ -2,7 +2,7 @@ class Source < ActiveRecord::Base include SyncHelper - attr_accessible :title, :author, :editor, :lang, :published_date, :pages, :isbn_10, + attr_accessible :title, :author, :editor, :introducer, :translator, :lang, :published_date, :pages, :isbn_10, :isbn_13, :page_count, :google_books_id, :publisher, :library_thing_id, :open_library_id, :tag, :dirty, :attempts, :notes