Sha256: 88bb10c7ad5f766b449d03a113d5a13e25136ff41dc73b8d7a09ad8d36f32b1f
Contents?: true
Size: 355 Bytes
Versions: 236
Compression:
Stored size: 355 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class ObserverGenerator < Base 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
236 entries across 205 versions & 16 rubygems