Sha256: 4f3a0bafa06573e480803e66b36f5c4c49228998c3eebadff7dda841b955c373
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require 'rails/generators/ripple_generator' module Ripple module Generators class ObserverGenerator < NamedBase desc 'Creates an observer for Ripple documents' check_class_collision :suffix => "Observer" def create_observer_file template 'observer.rb', File.join("app/models", class_path, "#{file_name}_observer.rb") end hook_for :test_framework end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
seomoz-ripple-1.0.0.pre | lib/rails/generators/ripple/observer/observer_generator.rb |
ripple-1.0.0.beta | lib/rails/generators/ripple/observer/observer_generator.rb |