Sha256: 85eb20d5792dc8b46699f8c96a91563021b54f1ce25cfcffc426ff737a570cb4

Contents?: true

Size: 1.59 KB

Versions: 9

Compression:

Stored size: 1.59 KB

Contents

# THIS IS INCOMPLETE (you can help by expanding it)
# rails is _really complicated_ and has a lot of magic which calls methods for you.
# some is currently impossible to handle (with_options).
# Some is just corners of rails I haven't hit yet.
keep:
  - validate_each # ActiveModel::EachValidator

dynamic:
  - names:
      - after_initialize
      - before_validation
      - after_validation
    calls:
      - arguments: 0
      - arguments: [if, unless]
        nested:
          arguments: '*'
  - name:
      - validates_associated
    calls:
      - arguments: ['*', if, unless]
  - name: validates
    calls:
      - arguments:
          - '*'
          - within
          - inclusion
          - scope
          - if
          - unless
      - arguments: inclusion
        nested:
          arguments: 'in'
      - keywords:
          unless: [if, unless]
        camelize: true
        add_suffix: Validator
        split: '::'
  - names:
      - validate
      - validate_associated
    calls:
      - arguments: ['*', if, unless]
  - name:
      - attribute
      - alias_attribute
    path: app/models/*
    defines:
      argument: 0
      transforms:
        - original
        - add_suffix: '?'
        - add_suffix: '='
  - name: alias_attribute
    calls:
      - argument: 1
      - argument: 1
        add_suffix: '?'
      - argument: 1
        add_suffix: '='
  - name: resource
    calls:
      - argument: 0
        camelize: true
        pluralize: true
        add_suffix: Controller
        split: '::'

  - name:
    - new
    - assign_attributes
    calls:
      keyword: '**'
      add_suffix: '='

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
leftovers-0.8.0 lib/config/activemodel.yml
leftovers-0.7.0 lib/config/activemodel.yml
leftovers-0.6.0 lib/config/activemodel.yml
leftovers-0.5.5 lib/config/activemodel.yml
leftovers-0.5.4 lib/config/activemodel.yml
leftovers-0.5.3 lib/config/activemodel.yml
leftovers-0.5.2 lib/config/activemodel.yml
leftovers-0.5.1 lib/config/activemodel.yml
leftovers-0.5.0 lib/config/activemodel.yml