Sha256: 9281acf83275b215383afb8cbdf13a642af5fb3aea9fb96a7a37bd2c4c406434

Contents?: true

Size: 335 Bytes

Versions: 10

Compression:

Stored size: 335 Bytes

Contents

FavouriteObject.setup do |config|

  # NotifyUser will call this within NotificationsController to ensure the user is authenticated.
  config.authentication_method = :authenticate_user!

  # NotifyUser will call this within NotificationsController to return the current logged in user.
  config.current_user_method = :current_user

end

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
favourite_object-0.1.1 spec/dummy/rails-4.0.2/config/initializers/favourite_object.rb
favourite_object-0.1.1 lib/generators/favourite_object/install/templates/initializer.rb
favourite_object-0.1.0 lib/generators/favourite_object/install/templates/initializer.rb
favourite_object-0.1.0 spec/dummy/rails-4.0.2/config/initializers/favourite_object.rb
favourite_object-0.0.3 spec/dummy/rails-4.0.2/config/initializers/favourite_object.rb
favourite_object-0.0.3 lib/generators/favourite_object/install/templates/initializer.rb
favourite_object-0.0.2 spec/dummy/rails-4.0.2/config/initializers/favourite_object.rb
favourite_object-0.0.2 lib/generators/favourite_object/install/templates/initializer.rb
favourite_object-0.0.1 lib/generators/favourite_object/install/templates/initializer.rb
favourite_object-0.0.1 spec/dummy/rails-4.0.2/config/initializers/favourite_object.rb