Module: PhrasingHelper

Included in:
PhrasingPhrasesController
Defined in:
lib/generators/phrasing/templates/app/helpers/phrasing_helper.rb

Instance Method Summary collapse

Instance Method Details

#can_edit_phrases?Boolean

You must implement the can_edit_phrases? method. Example:

def can_edit_phrases?

current_user.is_admin?

end

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/generators/phrasing/templates/app/helpers/phrasing_helper.rb', line 9

def can_edit_phrases?
  raise NotImplementedError.new("You must implement the can_edit_phrases? method")
end