Commits on Sep 25, 2009
  1. @augustl

    Adding test case to prove 1c873e0

    augustl committed Sep 25, 2009
  2. @htanata @augustl
Commits on Sep 23, 2009
  1. @niels

    Ruby 1.9 compatibility: instance_eval => instance_exec

    When using Ruby 1.9, foo.instance_eval(&bar) doesn't implicitly
    pass foo as bar's first argument anymore. While instance_exec
    isn't available in Ruby < 1.8.7, this is a Rails plugin and
    ActiveSupport provides a backport of instance_exec.
    niels committed Sep 23, 2009
Commits on Aug 24, 2009
Commits on Jul 25, 2009
  1. @augustl
  2. @alistairholt
Commits on Jul 3, 2009
  1. @augustl

    Using .underscore instead of .downcase on model class names. We want …

    …user_session_foo, not usersession_foo.
    augustl committed Jul 3, 2009
Commits on May 9, 2009
  1. @augustl
  2. @augustl

    Silencing the deprecation warning. Had to use ActiveSupport::Deprecat…

    …ion.silence, not Kernel.silence.
    augustl committed May 9, 2009
Commits on May 3, 2009
  1. @augustl

    Simplifying the form builder implementation to make it easier on the …

    …eye. Also making tag attribute altering adapters (such as validatious) work again, woot!
    augustl committed May 3, 2009
  2. @augustl

    Not running .callback_has_visible_attributes? on validation adapters …

    …that alters tag attributes. We need to know about all the validations before rendering the form for these types of adapters, because the form itself gets altered.
    augustl committed May 3, 2009
Commits on May 1, 2009
  1. @augustl
  2. @augustl

    Renaming LiveValidations::Adapter to LiveValidations::AdapterBase. It…

    … just makes more sense that way.
    augustl committed May 1, 2009
  3. @augustl

    Renaming and cleaning up a few things. No real changes.

    * Renaming the internal `perform_validations` method to `run_validations`.
    * Cleaning up the attribute hook code in the form builder.
    * Improved the error message when passing a invalid form builder object to <% form_for(the_object, :live_validations => true) %>
    augustl committed May 1, 2009
Commits on Apr 29, 2009
  1. @holman @augustl

    ValidationHook#message_for accepts optional options hash for I18N str…

    …ing {{interpolation}} purposes. Currently limited to livevalidation.com adapter, specifically length validations.
    
    Signed-off-by: August Lilleaas <augustlilleaas@gmail.com>
    holman committed with augustl Apr 29, 2009
  2. @holman @augustl

    Adds option to only validate onBlur rather than as you type

    Signed-off-by: August Lilleaas <augustlilleaas@gmail.com>
    holman committed with augustl Apr 29, 2009
  3. @holman @augustl

    Removes old submodule for Rails

    Signed-off-by: August Lilleaas <augustlilleaas@gmail.com>
    holman committed with augustl Apr 29, 2009
Commits on Apr 28, 2009
  1. @augustl
  2. @augustl
  3. @augustl
Commits on Apr 21, 2009
  1. @augustl

    The concat call is wrapped in silence_warnings. This will silence the…

    … deprecation warning caused by passing block.binding to concat.
    
    It is deprecated in 2.3 (and possibly 2.2), but in order to preserve backwards compatibility, I'll leave it as it is until it breaks stuff.
    augustl committed Apr 21, 2009
  2. @augustl

    We should not add custom validations to the messages stack. The messa…

    …ge is already baked in to the custom validation. Closes #1
    augustl committed Apr 21, 2009
Commits on Mar 20, 2009
  1. @augustl

    Added some kind of odd support for i18n interpolation in the custom :…

    …message messages for the live validations. E.g. :message => "but srsly, {{model}}" will be translated and used as "but srsly, Post" in the live validations.
    augustl committed Mar 20, 2009
Commits on Mar 19, 2009
  1. @augustl

    Allowing passing symbols to form_fors with live_validations => true. …

    …It will look for an instance variable matching the symbol, or raise an error if no instance variable is found, or if the symbol isn't an active record instance.
    augustl committed Mar 19, 2009
  2. @augustl

    Testing giving the form builder an invalid object, and raising a more…

    … sensible error message when it occurs.
    augustl committed Mar 19, 2009
  3. @augustl

    The plugin doesn't blow up when the model has validations callback wi…

    …thout attributes (e.g. `validate` with a block).
    augustl committed Mar 19, 2009
Commits on Mar 18, 2009
  1. @augustl

    Changed the test testing attributes with validations but no form fiel…

    …ds to make more sense. Using an actual attribute in the validation, instead of a random one, etc.
    augustl committed Mar 18, 2009
  2. @augustl

    How to run unit tests is obvious now (rake or rake test). Removing th…

    …e unit test README.
    augustl committed Mar 18, 2009
  3. @augustl

    Making sure nothing breaks when not providing :live_validation => tru…

    …e to a form_for tag.
    augustl committed Mar 18, 2009
  4. @augustl

    Making the error messages more sensible. Instead of rescuing all erro…

    …rs, the error that was raised is passed on. Also improved InlineTemplate so that syntax errors in the viewstring passed to 'render' provides a sensible error message.
    augustl committed Mar 18, 2009
  5. @augustl

    Improving the test suite by not using a vendored rails app in test/, …

    …but mocking it all out instead. This is done because it is convenient to be able to pass the view to render in the test as a string, compared to creating a bunch of views in the vendored rails application.
    augustl committed Mar 18, 2009
  6. @augustl
  7. @augustl

    Now only adding validations for visible form fields.

    Breaks validatious, but that adapter is vastly incomplete anyways.
    augustl committed Mar 18, 2009
  8. @augustl

    Whoops, also passing on the options to the form_for call when :live_v…

    …alidations hasn't been set.
    augustl committed Mar 18, 2009
Commits on Mar 17, 2009
  1. @augustl