Class: Tuttle::PaperclipController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tuttle/paperclip_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#check_reload_status

Instance Method Details

#indexObject



7
8
9
10
11
# File 'app/controllers/tuttle/paperclip_controller.rb', line 7

def index
  # Note: in development with reloading, classes will show up in the registry multiple times
  render(plain: "Paperclip not installed") and return unless defined?(::Paperclip)
  @pcar = Paperclip::AttachmentRegistry.instance
end