class Tagliatelle::Generators::InstallGenerator

Public Instance Methods

copy_migrations() click to toggle source
# File lib/generators/tagliatelle/install_generator.rb, line 24
def copy_migrations
  system("bundle exec rake tagliatelle:install:migrations")
end
create_tag_model() click to toggle source
# File lib/generators/tagliatelle/install_generator.rb, line 4
      def create_tag_model
        create_file "app/models/tag.rb" do
          <<-END.strip_heredoc
            class Tag < ActiveRecord::Base
              include Tagliatelle::Tag
            end
          END
        end
      end
create_tagging_model() click to toggle source
# File lib/generators/tagliatelle/install_generator.rb, line 14
      def create_tagging_model
        create_file "app/models/tagging.rb" do
          <<-END.strip_heredoc
            class Tagging < ActiveRecord::Base
              include Tagliatelle::Tagging
            end
          END
        end
      end