Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lifo/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed Dec 31, 2013
2 parents f3a8be3 + 6e2d35d commit c4fb191
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions activemodel/lib/active_model/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module ActiveModel
# == Active \Model \Errors
#
# Provides a modified +Hash+ that you can include in your object
# for handling error messages and interacting with Action Pack helpers.
# for handling error messages and interacting with Action View helpers.
#
# A minimal implementation could be:
#
Expand Down Expand Up @@ -279,7 +279,7 @@ def to_hash(full_messages = false)
# If +message+ is a proc, it will be called, allowing for things like
# <tt>Time.now</tt> to be used within an error.
#
# If the <tt>:strict</tt> option is set to true will raise
# If the <tt>:strict</tt> option is set to +true+, it will raise
# ActiveModel::StrictValidationFailed instead of adding the error.
# <tt>:strict</tt> option can also be set to any other exception.
#
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Lint
#
# These tests do not attempt to determine the semantic correctness of the
# returned values. For instance, you could implement <tt>valid?</tt> to
# always return true, and the tests would pass. It is up to you to ensure
# always return +true+, and the tests would pass. It is up to you to ensure
# that the values are semantically meaningful.
#
# Objects you pass in are expected to return a compliant object from a call
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/secure_password.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self

module ClassMethods
# Adds methods to set and authenticate against a BCrypt password.
# This mechanism requires you to have a password_digest attribute.
# This mechanism requires you to have a +password_digest+ attribute.
#
# Validations for presence of password on create, confirmation of password
# (using a +password_confirmation+ attribute) are automatically added. If
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def serializable_hash(options = nil)
# retrieve the value for a given attribute differently:
#
# class MyClass
# include ActiveModel::Validations
# include ActiveModel::Serialization
#
# def initialize(data = {})
# @data = data
Expand Down
20 changes: 10 additions & 10 deletions guides/source/asset_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ been extracted out of the framework into the

The asset pipeline is enabled by default.

You can disable the asset pipeline while creating a new application by
You can disable the asset pipeline while creating a new application by
passing the `--skip-sprockets` option.

```bash
rails new appname --skip-sprockets
```

Rails 4 automatically adds the `sass-rails`, `coffee-rails` and `uglifier`
Rails 4 automatically adds the `sass-rails`, `coffee-rails` and `uglifier`
gems to your Gemfile, which are used by Sprockets for asset compression:

```ruby
Expand All @@ -42,7 +42,7 @@ gem 'uglifier'
gem 'coffee-rails'
```

Using the `--skip-sprockets` option will prevent Rails 4 from adding
Using the `--skip-sprockets` option will prevent Rails 4 from adding
`sass-rails` and `uglifier` to Gemfile, so if you later want to enable
the asset pipeline you will have to add those gems to your Gemfile. Also,
creating an application with the `--skip-sprockets` option will generate
Expand All @@ -54,7 +54,7 @@ the comment operator on that line to later enable the asset pipeline:
# require "sprockets/railtie"
```

To set asset compression methods, set the appropriate configuration options
To set asset compression methods, set the appropriate configuration options
in `production.rb` - `config.assets.css_compressor` for your CSS and
`config.assets.js_compressor` for your Javascript:

Expand Down Expand Up @@ -228,7 +228,7 @@ Pipeline assets can be placed inside an application in one of three locations:
* `app/assets` is for assets that are owned by the application, such as custom
images, JavaScript files or stylesheets.

* `lib/assets` is for your own libraries' code that doesn't really fit into the
* `lib/assets` is for your own libraries' code that doesn't really fit into the
scope of the application or those libraries which are shared across applications.

* `vendor/assets` is for assets that are owned by outside entities, such as
Expand Down Expand Up @@ -350,8 +350,8 @@ Alternatively, a request for a file with an MD5 hash such as
way. How these hashes are generated is covered in the [In
Production](#in-production) section later on in this guide.

Sprockets will also look through the paths specified in `config.assets.paths`,
which includes the standard application paths and any paths added by Rails
Sprockets will also look through the paths specified in `config.assets.paths`,
which includes the standard application paths and any paths added by Rails
engines.

Images can also be organized into subdirectories if required, and then can be
Expand Down Expand Up @@ -503,7 +503,7 @@ of these Sprockets directives. Using Sprockets directives all Sass files exist
within their own scope, making variables or mixins only available within the
document they were defined in. You can do file globbing as well using
`@import "*"`, and `@import "**/*"` to add the whole tree equivalent to how
`require_tree` works. Check the [sass-rails
`require_tree` works. Check the [sass-rails
documentation](https://github.com/rails/sass-rails#features) for more info and
important caveats.

Expand Down Expand Up @@ -532,7 +532,7 @@ and CSS file. The example used before was a controller called "projects", which
generated an `app/assets/javascripts/projects.js.coffee` and an
`app/assets/stylesheets/projects.css.scss` file.

In development mode, or if the asset pipeline is disabled, when these files are
In development mode, or if the asset pipeline is disabled, when these files are
requested they are processed by the processors provided by the `coffee-script`
and `sass` gems and then sent back to the browser as JavaScript and CSS
respectively. When asset pipelining is enabled, these files are preprocessed and
Expand Down Expand Up @@ -638,7 +638,7 @@ Debug mode can also be enabled in Rails helper methods:

The `:debug` option is redundant if debug mode is already on.

You can also enable compression in development mode as a sanity check, and
You can also enable compression in development mode as a sanity check, and
disable it on-demand as required for debugging.

In Production
Expand Down

0 comments on commit c4fb191

Please sign in to comment.