Sha256: 06cd235a4e0bb71450c0e50049208beae17430af3e9b3e36872362ca9227f3d7

Contents?: true

Size: 446 Bytes

Versions: 48

Compression:

Stored size: 446 Bytes

Contents

class <%= exporter_class_name %> < Para::Exporter::Base
  def name
    '<%= file_name %>'
  end

  protected

  def generate
    # Add your export logic here, returning the exported data that will be
    # stored with Paperclip and then directly served to the user
  end

  def extension
    '.<%= @format %>'
  end

  # If your #generate method returns binary data, uncomment the following
  # method.
  #
  # def binary?
  #   true
  # end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
para-0.7.3.p5 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.3.p4 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.3.p3 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.3.p2 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.3.p1 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.3 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.2 lib/generators/para/exporter/templates/base_exporter.rb
para-0.7.1 lib/generators/para/exporter/templates/base_exporter.rb