Sha256: 7f0278cc929a04389d78bc4597aeeba3dc712589cbc371b086a8356efb18e57c

Contents?: true

Size: 997 Bytes

Versions: 7

Compression:

Stored size: 997 Bytes

Contents

HowTo.configure do |config|
  #to enable rich text editor make the following line uncommented with the value true
  #HowTo uses mercury  <https://github.com/jejacks0n/mercury> for rich text editor
  #You have to install mercury to your application
  #config.rich_text_enabled = false

  #in your application controller:
  # def authorize_to_manage_how_to
  #  redirect_to :somewhere_else unless <condition>
  # end
  #
  #config.authorization_method_to_manage = :authorize_to_manage_how_to!
  #
  # if you want to set some permission to vew the how to then you can set a method name and define it as like  authorization_method_to_manage
  #  def allowed_to_view_how_to
  #    redirect_to main_app.root_path, :notice => t('notifications.admin_section_access_error') unless current_user
  #  end
  #config.authorization_method_to_view = nil #nil allows everybody to vew the how lo page

  #this method should return true/false
  #config.permitted_to_manage_how_to = :permitted_to_manage_how_to?
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
how_to-0.0.7 lib/generators/how_to/templates/how_to_config.rb
how_to-0.0.6 lib/generators/how_to/templates/how_to_config.rb
how_to-0.0.5 lib/generators/how_to/templates/how_to_config.rb
how_to-0.0.4 lib/generators/how_to/templates/how_to_config.rb
how_to-0.0.3 lib/generators/how_to/templates/how_to_config.rb
how_to-0.0.2 lib/generators/how_to/templates/how_to_config.rb
how_to-0.0.1 lib/generators/how_to/templates/how_to_config.rb