Sha256: c93f60cddda86864589d583196752006abb7d3e23be5ab06726b2dfefa4c2fcc

Contents?: true

Size: 735 Bytes

Versions: 24

Compression:

Stored size: 735 Bytes

Contents

Description:
  Stubs out a new query. Pass the model name, either CamelCased or
  under_scored as the model to base the query on.
  "Query" will be appended to the name of the query class.

  This generator invokes your configured test framework which defaults to TestUnit

  If you pass a namespaced model name (e.g. admin/account or Admin::Account)
  then the generator will create a module (e.g. admin_account)

Examples:
  `rails generate riveter:query portfolio`

    Creates a query class based off of the Portfolio model

      Query: app/queries/portfolio_query.rb

  `rails generate riveter:query admin/account`

    Creates a query class based off of the Admin::Account model

      Query: app/queries/admin/account_query.rb

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
riveter-0.8.3 lib/generators/riveter/query/USAGE
riveter-0.8.2 lib/generators/riveter/query/USAGE
riveter-0.8.1 lib/generators/riveter/query/USAGE
riveter-0.8.0 lib/generators/riveter/query/USAGE
riveter-0.7.0 lib/generators/riveter/query/USAGE
riveter-0.6.0 lib/generators/riveter/query/USAGE
riveter-0.3.0 lib/generators/riveter/query/USAGE
riveter-0.2.1 lib/generators/riveter/query/USAGE
riveter-0.2.0 lib/generators/riveter/query/USAGE
riveter-0.1.1 lib/generators/riveter/query/USAGE
riveter-0.0.15 lib/generators/riveter/query/USAGE
riveter-0.0.14 lib/generators/riveter/query/USAGE
riveter-0.0.13 lib/generators/riveter/query/USAGE
riveter-0.0.12 lib/generators/riveter/query/USAGE
riveter-0.0.11 lib/generators/riveter/query/USAGE
riveter-0.0.10 lib/generators/riveter/query/USAGE
riveter-0.0.9 lib/generators/riveter/query/USAGE
riveter-0.0.8 lib/generators/riveter/query/USAGE
riveter-0.0.7 lib/generators/riveter/query/USAGE
riveter-0.0.6 lib/generators/riveter/query/USAGE