Sha256: b147355bc513f90c606ee162072f7f89f565e8013576f2bcd259b6a0c6faa5d8

Contents?: true

Size: 1.28 KB

Versions: 14

Compression:

Stored size: 1.28 KB

Contents

# module ActiveMetadata
#   ## Define ControllerMethods
#   module Controller
#     ## this one manages the usual self.included, klass_eval stuff
#     extend ActiveSupport::Concern
# 
#     included do
#       before_filter :test_controller_instance_method
#     end
# 
#     module InstanceMethods
#       def test_controller_instance_method
#         puts "###### This text is coming from an application_controller before_filter that is being declared and triggered from inside the engine. This before_filter is automatically integrated in when the engine is installed into an app. Look inside lib/application_controller.rb to find it. ######"
#       end
# 
#       # This method is available inside application_controller but it is not being
#       # automatically executed. Notice the before_filter line above that is automatically
#       # executing the first method.
#       def second_controller_instance_method
#         puts "###### This method is not automatically run inside application_controller, but it is available inside application_controller. To see this example add 'before_filter :second_controller_instance_method' at the top of your app's application_controller.rb ######"
#       end
#     end
#   end
# end
# 
# ::ActionController::Base.send :include, ActiveMetadata::Controller
# 
# 

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
active_metadata-0.5.2 lib/application_controller.rb
active_metadata-0.5.1 lib/application_controller.rb
active_metadata-0.5.0 lib/application_controller.rb
active_metadata-0.4.2 lib/application_controller.rb
active_metadata-0.4.1 lib/application_controller.rb
active_metadata-0.3.2 lib/application_controller.rb
active_metadata-0.3.1 lib/application_controller.rb
active_metadata-0.3.0 lib/application_controller.rb
active_metadata-0.2.4 lib/application_controller.rb
active_metadata-0.2.3 lib/application_controller.rb
active_metadata-0.2.2 lib/application_controller.rb
active_metadata-0.2.1 lib/application_controller.rb
active_metadata-0.2.0 lib/application_controller.rb
active_metadata-0.1.9 lib/application_controller.rb