discourse/app/models
Philipp Weissensteiner 3dcb1905e3 Refactor user controller, create action, mostly.
The gist of the commit are a few improvements in the
create action, where:

* long boolean statemenst have been wrapped in smaller more readable
  methods.
* the 3rd party user info creation has been extracted (still in controller)
* a small helper method for creating a new user from params (to reduce
  visual clutter)
* specs have been added where I came across untested methods/branches

Other changes are more trivial like formatting and whitespace fixes.
Hope this helps. Regards.
2013-04-13 00:53:59 +02:00
..
admin_dashboard_data.rb Dashboard: split out private messages from topic and post counts; re-enable report_spec because I think I fixed it... 2013-04-03 13:26:09 -04:00
admin_log.rb Add ability to destroy a user with 0 posts 2013-04-12 16:53:00 -04:00
category_featured_topic.rb Include pinned on Categories page 2013-04-03 11:45:53 -04:00
category_featured_user.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
category_list.rb Exclude recently made invisible topics from the categories list. Also remove a couple n+1 queries. 2013-04-05 16:09:27 -04:00
category.rb Use message bus to broadcast addition and removal of categories 2013-04-10 15:53:36 -04:00
discourse_version_check.rb Version check gets how many versions behind you are, and shows judgemental faces on the dashboard 2013-03-05 18:15:33 -05:00
draft_sequence.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
draft.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
email_log.rb Dashboard: split out private messages from topic and post counts; re-enable report_spec because I think I fixed it... 2013-04-03 13:26:09 -04:00
email_token.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
error_log.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
facebook_user_info.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
github_user_info.rb Added Github authentication option, disabled by default with enable options in settings. 2013-02-26 05:00:21 +00:00
hot_topic.rb Debugging Tool for Hot Topics 2013-04-02 18:00:53 -04:00
incoming_link.rb move IncomingLink callbacks into their own methods 2013-03-02 12:33:29 +03:00
invite.rb introduce Enum 2013-03-01 21:16:36 +03:00
invited_list.rb Fix all the trailing whitespace 2013-02-07 16:45:24 +01:00
message_bus_observer.rb Rename 'popular' to 'latest'. First stab at 'Hot' tab. 2013-03-27 16:21:23 -04:00
notification.rb introduce Enum 2013-03-01 21:16:36 +03:00
post_action_type.rb added 2 new flag types: notify user and notify moderators 2013-04-12 17:55:45 +10:00
post_action.rb oops 2013-04-12 18:14:36 +10:00
post_alert_observer.rb Cleaned up TopicUserSpec, introduces clearing of pinned topics 2013-03-07 12:19:25 -05:00
post_reply.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
post_timing.rb correct logic for tracking the highest seen post number so its always consistent 2013-04-08 11:12:52 +10:00
post.rb Post image_count doesn't count favicons and thumbnails in oneboxes, so visitors can post links that get oneboxed 2013-04-11 12:36:45 -04:00
report.rb Fix dashboard totals for topics, posts, and private messages 2013-04-05 14:09:16 -04:00
search_observer.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
site_content_type.rb Replace MultisiteI18n hack with SiteContent and admin editing. 2013-04-05 16:48:15 -04:00
site_content.rb Replace MultisiteI18n hack with SiteContent and admin editing. 2013-04-05 16:48:15 -04:00
site_customization.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
site_setting.rb auto replace rules in titles 2013-04-10 11:00:50 +02:00
site.rb Rename 'popular' to 'latest'. First stab at 'Hot' tab. 2013-03-27 16:21:23 -04:00
stripped_length_validator.rb FIX: setting min_topic_title_length is ignored 2013-04-10 14:54:10 +02:00
topic_allowed_user.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
topic_invite.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
topic_link_click.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
topic_link.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
topic_list.rb Show all Hot rankings at once with a toggle button 2013-04-03 15:25:18 -04:00
topic_poster.rb topic_poster.rb: Fix formatting of the attributes return value 2013-03-23 19:09:01 +05:30
topic_user.rb better consistency check 2013-04-08 13:02:20 +10:00
topic.rb Add ability to destroy a user with 0 posts 2013-04-12 16:53:00 -04:00
twitter_user_info.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
upload.rb added some tests for uploads 2013-04-07 17:52:46 +02:00
user_action_observer.rb introduce Enum 2013-03-01 21:16:36 +03:00
user_action.rb collapse some db tests 2013-04-10 12:50:00 +10:00
user_email_observer.rb introduce Enum 2013-03-01 21:16:36 +03:00
user_open_id.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
user_search.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
user_visit.rb some minimal site settings diags 2013-04-05 17:47:54 +11:00
user.rb Refactor user controller, create action, mostly. 2013-04-13 00:53:59 +02:00
username_validator.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
view.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00