Sha256: 623198d63b27d56e42e807adf56fda2cd385a5cca687c3ca816b369a3d380e81
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module Detour::FlaggableFlagsHelper def feature_name params[:feature_name] end def flag_noun flag_type.dasherize end def flag_title flag_noun.capitalize end def flag_type params[:flag_type].underscore.singularize end def flag_verb flag_type == "flag_in" ? "flagged in to" : "opted out of" end def flaggable_type params[:flaggable_type] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.15 | app/helpers/detour/flaggable_flags_helper.rb |