lib/scribd_fu.rb in scribd_fu-2.0.8 vs lib/scribd_fu.rb in scribd_fu-2.0.9
- old
+ new
@@ -134,11 +134,10 @@
# Configure ScribdFu for this particular environment
def check_environment
load_rscribd
check_config
- check_fields
end
def check_config
ScribdFu::config
end
@@ -160,15 +159,9 @@
# Load Paperclip specific methods and files
def load_paperclip
require 'scribd_fu/paperclip'
include ScribdFu::Paperclip::InstanceMethods
- end
-
- # Ensure ScribdFu-centric attributes exist
- def check_fields
- fields = %w{ipaper_id ipaper_access_key}.inject([]){|stack, f| stack << "#{name}##{f}" unless column_names.include?(f); stack}
- raise ScribdFuError, "These fields are missing: #{fields.to_sentence}" if fields.size > 0
end
# Load either AttachmentFu or Paperclip-specific methods
def load_base_plugin(str)
if str == 'AttachmentFu'