Sha256: 2fad61aee49f00bfde6c96c493c988bcc4c572dce36cdbbb1aab0f7f46a7f1ed
Contents?: true
Size: 400 Bytes
Versions: 5
Compression:
Stored size: 400 Bytes
Contents
# encoding: utf-8 require "rails/generators/mongoid_generator" module Mongoid #:nodoc: module Generators #:nodoc: class ObserverGenerator < Base #:nodoc: 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
5 entries across 5 versions & 2 rubygems