lib/authoreyes.rb in authoreyes-0.1.1 vs lib/authoreyes.rb in authoreyes-0.2.0

- old
+ new

@@ -1,7 +1,17 @@ +require 'rails' require 'authoreyes/version' -require 'authoreyes/authorization' require 'authoreyes/parser' +require 'authoreyes/authorization' +require 'authoreyes/railtie' module Authoreyes - # Your code goes here... + class Railtie + # Require helpers after Rails initialization + config.after_initialize do + require 'authoreyes/helpers/in_controller' + + # Include Controller helpers + ActionController::Base.include Authoreyes::Helpers::InController + end + end end