Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Hi Erlend!

    What happens if I remove a user?
    The tasks also be removed or be left without a user?


    Thank's !
    • CommentAuthoradmin
    • CommentTimeJan 30th 2008
     permalink
    Tasks will stay, but the time logged by the user will disappear.

    -- Erlend
  2.  permalink
    You could put the option to inactivate a user?

    So when a person leave the company he would be inactivated.
    The tasks would have preserved their time.
    And you could not be listed anywhere else.
    Nor could most logging in the system.

    Thanks
    • CommentAuthoradmin
    • CommentTimeJan 30th 2008
     permalink
    Feel free to send me a patch. :-)

    -- Erlend
  3.  permalink
    No problems.
    Please, just explain me how I can make a join in a condition.

    Well...
    It's big problem for me, because I never changed one line of RoR code before.
    I already put the column in the database and has put this option in view.
    But remains limit the list of users for only activeds. I don't know how.

    Thanks
    • CommentAuthoradmin
    • CommentTimeJan 30th 2008
     permalink
    You'd need to add something to the :condition parameters where users are found.

    In most places this can be done in the models, like:
    app/models/project.rb:

    has_many :users, :conditions => ["users.inactive IS NULL"]