Sha256: 8dd347ed9c9f5e51053a09a1c625301d62394a1337eccde53621b00b07526796

Contents?: true

Size: 188 Bytes

Versions: 13

Compression:

Stored size: 188 Bytes

Contents

module GenericFileHelper

  def generic_file_title(gf)
    can?(:read, gf) ? gf.to_s : "File"
  end

  def generic_file_link_name(gf)
    can?(:read, gf) ? gf.filename : "File"
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 app/helpers/generic_file_helper.rb
curate-0.6.5 app/helpers/generic_file_helper.rb
curate-0.6.4 app/helpers/generic_file_helper.rb
curate-0.6.3 app/helpers/generic_file_helper.rb
curate-0.6.1 app/helpers/generic_file_helper.rb
curate-0.6.0 app/helpers/generic_file_helper.rb
curate-0.5.6 app/helpers/generic_file_helper.rb
curate-0.5.5 app/helpers/generic_file_helper.rb
curate-0.5.4 app/helpers/generic_file_helper.rb
curate-0.5.2 app/helpers/generic_file_helper.rb
curate-0.5.1 app/helpers/generic_file_helper.rb
curate-0.5.0 app/helpers/generic_file_helper.rb
curate-0.4.2 app/helpers/generic_file_helper.rb