README.markdown in sham-0.0.3 vs README.markdown in sham-0.0.4

- old
+ new

@@ -15,14 +15,14 @@ def self.options { :name => "Sample User" } end end -Note: Sham is automatically enabled in test and cucumber environments. You can manually enable it or disable -it by using the enable! and disable! commands in your environment.rb or test.rb files: +To enable Sham in a particular environment, add the following to your environment.rb or test.rb file: - Sham::Config.enable! - Sham::Config.disable! + config.after_initialize do + Sham.activate! + end You can now "sham" your models and pass additional attributes at creation: User.sham! User.sham! :name => "New Name" \ No newline at end of file