File: USAGE

package info (click to toggle)
ruby-versionist 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 244 kB
  • sloc: ruby: 798; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
Description:
    Creates a new presenter class with the given name under the given version

Example:
    rails generate versionist:new_presenter foo V2_0_0

    This will create:
        app/presenters/v2_0_0/foo_presenter.rb

    In addition this will create a test for the new controller using the test_framework currently configured in your Rails app.