Sha256: 0d6c0f834cb6f721a62b4ab3e41e46610beca4b30511d25531f809804b28ef1f

Contents?: true

Size: 349 Bytes

Versions: 22

Compression:

Stored size: 349 Bytes

Contents

require 'generators/data_mapper'

module DataMapper
  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

22 entries across 22 versions & 3 rubygems

Version Path
ardm-rails-1.3.1 lib/generators/data_mapper/observer/observer_generator.rb
ardm-rails-1.3.0 lib/generators/data_mapper/observer/observer_generator.rb
ardm-rails-1.2.1 lib/generators/data_mapper/observer/observer_generator.rb
tpitale-dm-rails-1.3.0 lib/generators/data_mapper/observer/observer_generator.rb
tpitale-dm-rails-1.2.2 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.2.1 lib/generators/data_mapper/observer/observer_generator.rb
tpitale-dm-rails-1.2.1 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.2.0 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.2.0.rc2 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.2.0.rc1 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.1.0 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.1.0.rc3 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.1.0.rc2 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.1.0.rc1 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.0.4 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.0.3 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.0.2 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.0.1 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.0.0 lib/generators/data_mapper/observer/observer_generator.rb
dm-rails-1.0.0.rc3 lib/generators/data_mapper/observer/observer_generator.rb