Skip to content

Commit

Permalink
. actionmailer does not belong to the action pack and has to be liste…
Browse files Browse the repository at this point in the history
…d as a separate dependency
  • Loading branch information
beatrichartz committed Oct 29, 2012
1 parent 124ac81 commit 10693f7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Gemfile.lock
Expand Up @@ -2,13 +2,17 @@ PATH
remote: .
specs:
view_models (3.0.0)
actionmailer (>= 3.0.0)
actionpack (>= 3.0.0)
activerecord (>= 3.0.0)

GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.9)
actionmailer (3.2.8)
actionpack (= 3.2.8)
mail (~> 2.4.4)
actionpack (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
Expand Down Expand Up @@ -76,9 +80,14 @@ GEM
json (1.7.5)
libwebsocket (0.1.5)
addressable
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
multi_json (1.3.6)
nokogiri (1.5.5)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
Expand Down Expand Up @@ -131,6 +140,9 @@ GEM
temple (0.4.1)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.11)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.33)
xpath (0.1.4)
nokogiri (~> 1.3)
Expand Down
6 changes: 6 additions & 0 deletions README.textile
Expand Up @@ -17,6 +17,12 @@ Create a directory "view_models" in your app folder, and you're good to go.
<pre><code>mkdir ./app/view_models
</code></pre>

h2. TODOs

What you can look forward to in future versions of this gem:
- Bootstrapping for easier installation
- JSON generation out of view models

h2. Basic Usage

Let's say you have a model User (with a first and a last name and an address in the database):
Expand Down
1 change: 1 addition & 0 deletions view_models.gemspec
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |s|

s.add_dependency 'activerecord', '>= 3.0.0'
s.add_dependency 'actionpack', '>= 3.0.0'
s.add_dependency 'actionmailer', '>= 3.0.0'

s.add_development_dependency 'rake', '>= 0.8.7'
s.add_development_dependency 'aruba'
Expand Down

0 comments on commit 10693f7

Please sign in to comment.