<commit_before># VirtualAttributes

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'virtual_fields'

And then execute:

    $ bundle

    $ rake add_virtual_fields model=Model

    example: $ rake add_virtual_fields model=User

Or install it yourself as:

    $ gem install virtual_fields

## Usage

In your model add following code

  include VirtualFields
  virtual_keys :field1, field2, .......


  class User < ActiveRecord::Base
    attr_accessible :email, :name

    include VirtualFields
    virtual_keys :address, :job_title, date_of_birth
  end

  user = User.create
  user.address
  => nil

  user.address = "xyz block"
  user.save

  user.reload
  user.address
  => "xyz block"

That it! Enjoy

## Contributing

1. Fork it ( https://github.com/[my-github-username]/virtual_attributes/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>Added useage details<commit_after># VirtualAttributes

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'virtual_fields'

And then execute:

    $ bundle

    $ rake add_virtual_fields model=Model

    example: $ rake add_virtual_fields model=User

Or install it yourself as:

    $ gem install virtual_fields

## Usage

In your model add following code

    include VirtualFields

    virtual_keys :field1, field2, .......


    class User < ActiveRecord::Base
      attr_accessible :email, :name

      include VirtualFields
      virtual_keys :address, :job_title, date_of_birth
    end

    user = User.create
    user.address
    => nil

    user.address = "xyz block"
    user.save

    user.reload
    user.address
    => "xyz block"

That it! Enjoy

## Contributing

1. Fork it ( https://github.com/[my-github-username]/virtual_attributes/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.09008189262966333, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 3.294921875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509951', 'n_tokens_mistral': 697, 'n_tokens_neox': 645, 'n_words': 231}