Permalink
Browse files

renames to reflect latest datomic-simple

  • Loading branch information...
1 parent 558ebfa commit 5154de59eb7784d6c5ed4df912e5074d21a701d3 @cldwalker committed Oct 14, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/noir_blog/models/post.clj
  2. +2 −2 src/noir_blog/models/user.clj
@@ -22,13 +22,13 @@
;; Gets
(defn all []
- (db/all-by model-namespace :title))
+ (db/find-all-by model-namespace :title))
(defn total []
(count (all)))
(defn moniker->post [moniker]
- (db/find-first-by model-namespace {:moniker moniker}))
+ (db/find-first model-namespace {:moniker moniker}))
(defn get-page [page]
(let [page-num (dec (Integer. page)) ;; make it 1-based indexing
@@ -10,10 +10,10 @@
;; Gets
(defn all []
- (db/all-by model-namespace :username))
+ (db/find-all-by model-namespace :username))
(defn get-username [username]
- (db/find-first-by model-namespace {:username username}))
+ (db/find-first model-namespace {:username username}))
(defn admin? []
(session/get :admin))

0 comments on commit 5154de5

Please sign in to comment.