Sha256: 601ca1aa8e6cc343aba9cd726e752c48f2da881b6d01b18c628237a567cf34ef
Contents?: true
Size: 342 Bytes
Versions: 6
Compression:
Stored size: 342 Bytes
Contents
require 'rails/generators/sequel' module Sequel 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
6 entries across 6 versions & 1 rubygems