Sha256: 0abcd22480704131c5d62fa6c2ab76fe0235a110580b140ad4b8fd1d0392413c
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
module EnjuLeaf module ClassMethods def enju_leaf include EnjuLeaf::InstanceMethods include EnjuLeaf::Controller include Mobylette::RespondToMobileRequests end private def set_error_template rescue_from CanCan::AccessDenied, :with => :render_403 rescue_from ActiveRecord::RecordNotFound, :with => :render_404 rescue_from Errno::ECONNREFUSED, :with => :render_500 rescue_from ActionView::MissingTemplate, :with => :render_404_invalid_format end end module Controller def self.included(base) base.send(:before_filter, :get_library_group, :set_locale, :set_available_languages, :set_mobile_request) base.send(:set_error_template) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_leaf-1.1.0.rc1 | lib/enju_leaf/controller.rb |
enju_leaf-1.1.0.beta3 | lib/enju_leaf/controller.rb |
enju_leaf-1.1.0.pre3 | lib/enju_leaf/controller.rb |