Hammock

A Rails plug-in that eliminates redundant code in a very RESTful manner
Download

Hammock Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Ben Hoskings
  • Publisher web site:
  • http://rubyforge.org/users/ben_h/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 36 MB

Hammock Tags


Hammock Description

A Rails plug-in that eliminates redundant code in a very RESTful manner Hammock does this in lots in lots of different places, but in one manner: it encourages specification in place of implementation.Hammock enforces RESTful resource access by abstracting actions away from the controller in favour of a clean, model-like callback system.Hammock tackles the hard and soft sides of security at once with a scoping security system on your models. Specify who can verb what resources under what conditions once, and everything else - the actual security, index filtering, link generation - just hHammock inspects your routes and resources to generate a routing tree for each resource. Parent resources in a nested route are handled transparently at every point - record retrieval, creation, and linking. What's New in This Release: · Fix #link_class_for to handle multiple entities. · Use SELECT DISTINCT in #suggest to eliminate duplicates caused by JOINs. · Add opts and opts to #suggest. · In String@normalize_for_display, convert ? to d instead of o. · Rename String#normalize to #normalize_for_display, and add #normalize, which doesn't process ? etc. · Added explicit conversions for ? and ? to String#normalize. · Added String#normalize. · In Array#hash_by, treat :self as a special case. · Messy: include utils.rb before others, since it needs to be available at require time for model_logging.rb. · Namespace col names in AR::Base#suggest with table_name, to stop cols from JOINs trampling on cols we want. · In jquery_xhr's html response_action, don't attempt replacement when the target obj wasn't assigned. · In #status_callback, jQuerify the response directly instead of trying to look it up in the DOM. · Added JSON responder to #suggest, along side the existing HTML one. · Updated #can_verb_*? methods to accept any number of entities. · Updated #ajax_button, #ajax_link and #ajaxinate to accept entity arrays instead of single records. · Updated ActiveRecord::Base.suggest to rank results by position in each field of earliest query word occurrence, in supplied field order. · Added AR::Base#without_timestamps. · Changed default sort order to updated_at descending. · Added after_find callback.


Hammock Related Software