Sha256: 6841159d85b7536d1b772125e986d2dc5dabfa57041c5d7b3c35f17cd82f2a87

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

module Groupify
  module ActiveRecord
    class ModelGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      def copy_group_model_file
        copy_file "group.rb", "app/models/group.rb"
      end

      def copy_group_membership_model_file
        copy_file "group_membership.rb", "app/models/group_membership.rb"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
groupify-0.9.0 lib/generators/groupify/active_record/model/model_generator.rb
groupify-0.8.0 lib/generators/groupify/active_record/model/model_generator.rb
groupify-0.7.2 lib/generators/groupify/active_record/model/model_generator.rb
groupify-0.7.1 lib/generators/groupify/active_record/model/model_generator.rb
groupify-0.7.0 lib/generators/groupify/active_record/model/model_generator.rb