Sha256: 75ca9a6d2aa9a5941c26321fa9dc1743d3a068e8411e89f9a5cfa3c3b8e26062
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
module Docushin module ApplicationHelper def generate_name(verb, path) return Digest::MD5.hexdigest(verb + path) end def file_exists?(verb, path) File.exists?(File.join(Rails.root, 'doc', 'docushin', generate_name(verb, path)) + '.md') end def is_in_dev? Rails.env.development? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docushin-0.0.2 | app/helpers/docushin/application_helper.rb |